From a8689aee062e679acb380cda5fa2321efb897e48 Mon Sep 17 00:00:00 2001 From: Kevin Darby Date: Wed, 18 Sep 2019 15:13:53 -0400 Subject: [PATCH] verified client api examples work --- src/client/spark_sdk/README.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/client/spark_sdk/README.md b/src/client/spark_sdk/README.md index d1360daf2..4dac53418 100644 --- a/src/client/spark_sdk/README.md +++ b/src/client/spark_sdk/README.md @@ -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 [] - ui - order [] + order [] Arguments: + --user= + --pass= --pump= -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 ```