#io #sdk #stockfighter #api #applications

stockfighter-sdk-rs

Stockfighter.io SDK written in Rust

3 unstable releases

Uses old Rust 2015

0.1.0 Aug 4, 2016
0.0.2 Jan 22, 2016
0.0.1 Jan 13, 2016

#646 in #sdk

33 downloads per month

MIT/Apache

27KB
513 lines

stockfighter-sdk-rs

Stockfighter.io SDK written in Rust

Stockfighter API Documentation

Application Development

This SDK is a library and not suitable to solve the Stockfighter.io levels by itself. There is a skeleton stockfighter Rust app that you can start building an automated trading application with. Alternatively, you can add this library to an existing app by following the instructions on the crates.io webpage.

Local Application Development

This SDK is not complete. If you are developing on this library and want to use it in your app, then you can use cargo to source your local copy:

Create a .cargo/config file in some ancestor of your project’s directory (common places to put it is in the root of your code directory or in your home directory). Inside that file, put this:

paths = ["/path/to/project/stockfighter-sdk-rs"]

This array should be filled with directories that contain a Cargo.toml. In this instance, we’re just adding stockfighter-sdk-rs, so it will be the only one that’s overridden. This path must be an absolute path.

More information about local configuration can be found in the configuration documentation.

Mac SSL trouble:

$ brew install openssl
$ brew link --force openssl

$ export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include
$ export DEP_OPENSSL_INCLUDE=/usr/local/opt/openssl/include

$ cargo build
$ cargo run

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~14MB
~300K SLoC