Skip to content

Commit

Permalink
add more events in connect tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Oct 13, 2023
1 parent 7ec48dd commit 5e4e524
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@
<CommandLineArguments>
<CommandLineArgument
argument = "PerfTest localhost:6666 TimeAndSale YQKNT"
isEnabled = "YES">
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "Connect mddqa.in.devexperts.com:7400 Candle AAPL{=d} 20230201Z"
argument = "Connect mddqa.in.devexperts.com:7400 candle AAPL{=d} 20230201Z"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "Connect mddqa.in.devexperts.com:7400 Quote AAPL"
isEnabled = "NO">
argument = "Connect mddqa.in.devexperts.com:7400 OrDer AAPL"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "LatencyTest mddqa.in.devexperts.com:7400 TimeAndSale ETH/USD:GDAX"
Expand Down
30 changes: 28 additions & 2 deletions Samples/Utils/EventCode+String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,36 @@ extension EventCode {
switch string.lowercased() {
case "quote":
self = .quote
case "timeandsale":
self = .timeAndSale
case "profile":
self = .profile
case "summary":
self = .summary
case "greeks":
self = .greeks
case "candle":
self = .candle
case "dailycandle":
self = .dailyCandle
case "underlying":
self = .underlying
case "theoprice":
self = .theoPrice
case "trade":
self = .trade
case "tradeeth":
self = .tradeETH
case "timeandsale":
self = .timeAndSale
case "order":
self = .order
case "analyticorder":
self = .analyticOrder
case "spreadorder":
self = .spreadOrder
case "series":
self = .series
case "optionsale":
self = .optionSale
default:
fatalError("Please, handle this case: \(string)")
}
Expand Down

0 comments on commit 5e4e524

Please sign in to comment.