SPARK-1983, SPARK-1985, SPARK-1982, SPARK-1981
This commit is contained in:
1 parent
ff2102e0cd
commit
5aef712065
1 file changed
+35
-13
+35
-13
@@ -62,10 +62,25 @@ run ```build_examples.sh``` to make sure you can build the examples, this will p
|
||||
$ cd ~/spark_sdk/examples
|
||||
$ ./build_examples.sh
|
||||
```
|
||||
### Server Layout
|
||||
* Spark servers reside on a port, usually 8000, but your production instance could be on a different $PORT
|
||||
|
||||
##### SDK Package Layout
|
||||
* The sdk puts logs in ``~/sparkdata/data/logging/log``
|
||||
* The sdk package has binaries in ``spark_skd/lib``
|
||||
* Put plugins in ``spark_sdk/lib/plugins/`` for debugging
|
||||
|
||||
##### Production layout
|
||||
* Production Logs are in ``~/$PORT/sparkdata/data/logging/log`` on the host
|
||||
* Production binaries are in ``/sparkbin`` inside the docker container
|
||||
* Production algo plugins should go into the ``/sparkbin/plugins`` directory
|
||||
|
||||
### Recorded market data
|
||||
* If you want to see prices, before you start sparkd, you'll have to extract the futures.coconut.tar.gz found at the root of the sdk repo and place futures.coconut in ``~/sparkdata/data/replay/``
|
||||
|
||||
## Debugging
|
||||
|
||||
Copy the order_plugin_example.so to ```spark_sdk/lib/plugins/``` and start the sparkd server process inside gdb
|
||||
Copy the order_plugin_example.so to ``spark_sdk/lib/plugins/`` and start the sparkd server process inside gdb
|
||||
```
|
||||
$ cp -f order_plugin_example.so ~/spark_sdk/lib/plugins/
|
||||
$ cd ~/spark_sdk/lib
|
||||
@@ -87,24 +102,31 @@ $ cp -f order_plugin_example.so ~/spark_sdk/lib/plugins/
|
||||
$ cd ~/spark_sdk/lib
|
||||
$ ./sparkd run
|
||||
```
|
||||
|
||||
## Connect to Admin (Risk) UI to set limits or add users
|
||||
* Browse to http://location:$PORT
|
||||
* Login as bts, no password
|
||||
* Add or manage user trading and market data permissions by clicking the Users icon on the left side
|
||||
* Add or manage accounts and risk limits by clicking on the Accounts icon on the left side
|
||||
|
||||
## Other interesting web accessible things
|
||||
|
||||
* When you have a running server you can:
|
||||
* Browse to http://location/$PORT/config to check configuration overrides
|
||||
* Browse to http://location:$PORT/perf_trace to see socket to socket latencies
|
||||
* Send us an email for help: api_support@bluetradesys.com
|
||||
|
||||
|
||||
## Connect Spark windows client
|
||||
|
||||
* To start a spark client, use the -ConfigServer parameter to point at this new server
|
||||
```
|
||||
> spark.exe -ConfigServer http://location/8000/config
|
||||
> spark.exe -ConfigServer http://location:$PORT/config
|
||||
```
|
||||
Or create a file called spark.conf at %APPDATA%\bts\conf\ that contains:
|
||||
```
|
||||
include: "http://location:8000/config/"
|
||||
include: "http://location:$PORT/config/"
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
* When you have a running server you can:
|
||||
* Browse to http://location/8000 to set risk limits and create users
|
||||
* Browse to http://location/8000/config to check configuration overrides
|
||||
* Browse to http://location/8000/perf_trace to see socket to socket latencies
|
||||
* Send us an email for help: api_support@bluetradesys.com
|
||||
|
||||
|
||||
|
||||
## Download the Spark windows client
|
||||
* Download the bts installer here:
|
||||
Reference in new issue
Block a user