verified client api examples work
This commit is contained in:
1 parent
85b2d257a7
commit
a8689aee06
1 file changed
+17
-9
@@ -62,31 +62,39 @@ include: "http://location:8000/config/"
|
||||
* Make sure you can connect to a running server
|
||||
* run spark_sdk.exe with no parameters to see help
|
||||
```
|
||||
spark_sdk\bin\Debug\net471> spark_sdk.exe
|
||||
spark_sdk\bin\Debug\net471> spark_sdk.exe -ConfigServer http://location:8000/config
|
||||
|
||||
BTS Spark SDK
|
||||
Usages: spark_sdk [command] [arguments]
|
||||
|
||||
Commands:
|
||||
md <exchange> <security_type> <symbol> [<security_desc>]
|
||||
ui <exchange> <security_type> <symbol> <security_desc> <poll_interval_in_ms>
|
||||
order <exchange> <security_type> <symbol> <security_desc> <signed_quantity> [<price>]
|
||||
order <account> <exchange> <security_type> <symbol> <security_desc> <signed_quantity> [<price>]
|
||||
Arguments:
|
||||
--user=<bts user name>
|
||||
--pass=<password>
|
||||
--pump=<pump_interval_in_ms=100 default>
|
||||
|
||||
Example:
|
||||
To print simulated market data to the screen:
|
||||
spark_sdk.exe md SIM FUTURE ES SIM:ESU9 --user=bts
|
||||
```
|
||||
```
|
||||
* To print simulated market data to the screen:
|
||||
|
||||
```spark_sdk.exe md SIM FUTURE ES SIM:ESU9 --user=bts --pass= -ConfigServer http://location:8000/config```
|
||||
|
||||
* To send a 1 lot sell order for ES in account ACC A:
|
||||
|
||||
```spark_sdk.exe order "ACC A" SIM FUTURE ES SIM:ESU9 -1 4000.5 --user=bts --pass= -ConfigServer http://location:8000/config ```
|
||||
|
||||
You should see an order status stream print to the screen after running this command
|
||||
|
||||
|
||||
* Check out sample code
|
||||
* [Market Data](src/spark_sdk/samples/MarketDataSample.cs)
|
||||
* [Orders](src/spark_sdk/samples/OrderSample.cs)
|
||||
* [Driver](src/spark_sdk/samples/SDKMain.cs)
|
||||
|
||||
|
||||
```
|
||||
### Excel
|
||||
* Most BTS Client API calls can by made through Excel 2016.
|
||||
* Most BTS Client API calls can be made through Excel 2016, load the example spreadsheet to see how
|
||||
```
|
||||
spark_sdk\bin\Debug\net471> start spark_excel-addin64-packed.xll
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user