Files
spark/src/client/spark_sdk

BTS Spark

Our offering consists of a client UI Spark Client, a high performance professional futures front end, connected via our proprietary protocol over TCP to our Spark Server, which in turn connects to execution venues via their native protocols (typically FIX/TCP for execution and some proprietary protocol over UDP multicast for market data).

alt text

BTS Spark Client SDK

We currently offer two API extension points. This repository, our BTS Spark Client SDK allows users to control our Spark Server externally, that is, out of process, using the exact same protocol our own Spark Client does. In other words, a client application developed via the Spark Client SDK, say a VB .NET UI, would be able to provide any functionality our own UI provides.

We currently offer bindings for the Spark protocol to C++, C# and Excel clients. Since the underlying transport is TCP, clients developed via the Spark Client SDK can be located anywhere in the world, as long as they can reach the Spark Server via TCP. We do require a VPN or a secure network, since the Spark Protocol is currently not yet encrypted.

Our second API extension point is intended for users that require adding functionality to our Spark Server. If you are interested in extending the server process through custom order types, market data sources, or execution gateways, please see the Spark Server SDK.

In Depth

Getting Started

Git

  • First clone the spark_client_sdk repo
> git clone https://github.com/BlueTradingSystems/spark_client_sdk.git

Build

> cd spark_client_sdk\src\spark_sdk
spark_client_sdk\src\spark_sdk> msbuild /t:restore
spark_client_sdk\src\spark_sdk> msbuild
 
  • spark_sdk binaries will be produced in the bin\Debug directory

Connecting to Spark Server

  • Start your exe using the -ConfigServer parameter to point at a running Spark Server
> spark_sdk.exe -ConfigServer http://location:8000/config

Or create a file called spark.conf at %APPDATA%\bts\conf\ that contains:

include: "http://location:8000/config/"

Examples

  • 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

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>]
Arguments:
   --pump=<pump_interval_in_ms=100 default>

Excel

spark_sdk\bin\Debug\net471> start spark_excel-addin64-packed.xll 
  • This will start excel and load the bts addin
  • Check the excel directory for an example spreadsheet

Dotnet core

  • Right now we only support c# Windows 10 clients, but the package targets both net471 and .net core 2.1.6, so in theory one could run a .net core or c++ client on linux with a little work.

  • https://dotnet.microsoft.com/

    spark_client_sdk\src\spark_sdk> dotnet build
    ...> dotnet spark_sdk.dll
    
  • Send us an email for help: api_support@bluetradesys.com