RusFTX

Rust bindings for the FTX REST and Websocket API

Crates.io Docs.rs License

FTX API Documentation

Not all APIs are implemented yet. If you need a specific API, please open an issue, or consider contributing by creating a pull request.

RusFTX has taken inspiration from the existing ftx crate by Fabian Boesiger.

Authentication

RusFTX supports both API key and subaccount authentication, as well as having the ability to provide a custom endpoint (which could be used for proxies for example). RusFTX has implemented endpoints for both FTX (.com) and FTX-US (.us) which can be configured using EndpointCom and EndpointUs. ```rust let apikey = "YOURFTXAPIKEY"; let secret = "YOURFTXSECRET";

let restapi = RestApiWithAuthenticationBuilder::new() .endpoint(EndpointCom) .authentication(apikey, secret) .build(); ```

You can also use the Rustftx without authentication for endpoints that support it. rust let rest_api = RestApi::new(EndpointCom);

Pagination

Pagination can be performed using the start_time and end_time parameters on all endpoints that support it by providing a chrono DateTime<Utc>.

Implemented REST API bindings

Implemented Websocket API bindings