├── .clippy.toml ├── .github ├── dependabot.yml └── workflows │ └── rust.yml ├── .gitignore ├── .rustfmt.toml ├── .travis.yml ├── Cargo.toml ├── LICENSE ├── README.md ├── benches └── websocket_benchmark.rs ├── examples ├── README.md ├── binance_create_order_custom_params.rs ├── binance_endpoints.rs ├── binance_futures_endpoints.rs ├── binance_futures_userstream.rs ├── binance_futures_websockets.rs ├── binance_save_all_trades.rs └── binance_websockets.rs ├── src ├── account.rs ├── api.rs ├── client.rs ├── config.rs ├── errors.rs ├── futures │ ├── account.rs │ ├── general.rs │ ├── market.rs │ ├── mod.rs │ ├── model.rs │ ├── userstream.rs │ └── websockets.rs ├── general.rs ├── lib.rs ├── market.rs ├── model.rs ├── savings.rs ├── userstream.rs ├── util.rs └── websockets.rs └── tests ├── account_tests.rs ├── futures_account_tests.rs ├── futures_general_tests.rs ├── futures_market_test.rs ├── general_tests.rs ├── market_tests.rs ├── mocks ├── account │ ├── cancel_all_open_orders.json │ ├── cancel_order.json │ ├── get_account.json │ ├── get_open_orders.json │ ├── limit_buy.json │ ├── limit_sell.json │ ├── market_buy.json │ ├── market_buy_using_quote_quantity.json │ ├── market_sell.json │ ├── market_sell_using_quote_quantity.json │ ├── order_status.json │ ├── stop_limit_buy.json │ ├── stop_limit_sell.json │ └── trade_history.json ├── futures │ ├── account │ │ ├── cancel_all_open_orders.json │ │ ├── change_initial_leverage.json │ │ ├── change_margin_type.json │ │ ├── change_position_margin.json │ │ ├── change_position_mode.json │ │ ├── get_income_history.json │ │ ├── stop_market_close_position_buy.json │ │ └── stop_market_close_position_sell.json │ └── market │ │ └── open_interest_statistics.json ├── general │ ├── exchange_info.json │ └── server_time.json └── market │ ├── get_24h_price_stats.json │ ├── get_all_24h_price_stats.json │ ├── get_all_book_tickers.json │ ├── get_all_prices.json │ ├── get_average_price.json │ ├── get_book_ticker.json │ ├── get_depth.json │ ├── get_klines.json │ └── get_price.json └── util_tests.rs /.clippy.toml: -------------------------------------------------------------------------------- 1 | msrv = "1.56.1" 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/.gitignore -------------------------------------------------------------------------------- /.rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/.rustfmt.toml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/.travis.yml -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/README.md -------------------------------------------------------------------------------- /benches/websocket_benchmark.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/benches/websocket_benchmark.rs -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/binance_create_order_custom_params.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/binance_create_order_custom_params.rs -------------------------------------------------------------------------------- /examples/binance_endpoints.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/binance_endpoints.rs -------------------------------------------------------------------------------- /examples/binance_futures_endpoints.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/binance_futures_endpoints.rs -------------------------------------------------------------------------------- /examples/binance_futures_userstream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/binance_futures_userstream.rs -------------------------------------------------------------------------------- /examples/binance_futures_websockets.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/binance_futures_websockets.rs -------------------------------------------------------------------------------- /examples/binance_save_all_trades.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/binance_save_all_trades.rs -------------------------------------------------------------------------------- /examples/binance_websockets.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/examples/binance_websockets.rs -------------------------------------------------------------------------------- /src/account.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/account.rs -------------------------------------------------------------------------------- /src/api.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/api.rs -------------------------------------------------------------------------------- /src/client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/client.rs -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/config.rs -------------------------------------------------------------------------------- /src/errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/errors.rs -------------------------------------------------------------------------------- /src/futures/account.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/futures/account.rs -------------------------------------------------------------------------------- /src/futures/general.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/futures/general.rs -------------------------------------------------------------------------------- /src/futures/market.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/futures/market.rs -------------------------------------------------------------------------------- /src/futures/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/futures/mod.rs -------------------------------------------------------------------------------- /src/futures/model.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/futures/model.rs -------------------------------------------------------------------------------- /src/futures/userstream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/futures/userstream.rs -------------------------------------------------------------------------------- /src/futures/websockets.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/futures/websockets.rs -------------------------------------------------------------------------------- /src/general.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/general.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/market.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/market.rs -------------------------------------------------------------------------------- /src/model.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/model.rs -------------------------------------------------------------------------------- /src/savings.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/savings.rs -------------------------------------------------------------------------------- /src/userstream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/userstream.rs -------------------------------------------------------------------------------- /src/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/util.rs -------------------------------------------------------------------------------- /src/websockets.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/src/websockets.rs -------------------------------------------------------------------------------- /tests/account_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/account_tests.rs -------------------------------------------------------------------------------- /tests/futures_account_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/futures_account_tests.rs -------------------------------------------------------------------------------- /tests/futures_general_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/futures_general_tests.rs -------------------------------------------------------------------------------- /tests/futures_market_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/futures_market_test.rs -------------------------------------------------------------------------------- /tests/general_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/general_tests.rs -------------------------------------------------------------------------------- /tests/market_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/market_tests.rs -------------------------------------------------------------------------------- /tests/mocks/account/cancel_all_open_orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/cancel_all_open_orders.json -------------------------------------------------------------------------------- /tests/mocks/account/cancel_order.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/cancel_order.json -------------------------------------------------------------------------------- /tests/mocks/account/get_account.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/get_account.json -------------------------------------------------------------------------------- /tests/mocks/account/get_open_orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/get_open_orders.json -------------------------------------------------------------------------------- /tests/mocks/account/limit_buy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/limit_buy.json -------------------------------------------------------------------------------- /tests/mocks/account/limit_sell.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/limit_sell.json -------------------------------------------------------------------------------- /tests/mocks/account/market_buy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/market_buy.json -------------------------------------------------------------------------------- /tests/mocks/account/market_buy_using_quote_quantity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/market_buy_using_quote_quantity.json -------------------------------------------------------------------------------- /tests/mocks/account/market_sell.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/market_sell.json -------------------------------------------------------------------------------- /tests/mocks/account/market_sell_using_quote_quantity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/market_sell_using_quote_quantity.json -------------------------------------------------------------------------------- /tests/mocks/account/order_status.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/order_status.json -------------------------------------------------------------------------------- /tests/mocks/account/stop_limit_buy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/stop_limit_buy.json -------------------------------------------------------------------------------- /tests/mocks/account/stop_limit_sell.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/stop_limit_sell.json -------------------------------------------------------------------------------- /tests/mocks/account/trade_history.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/account/trade_history.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/cancel_all_open_orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/cancel_all_open_orders.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/change_initial_leverage.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/change_initial_leverage.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/change_margin_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/change_margin_type.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/change_position_margin.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/change_position_margin.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/change_position_mode.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/change_position_mode.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/get_income_history.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/get_income_history.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/stop_market_close_position_buy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/stop_market_close_position_buy.json -------------------------------------------------------------------------------- /tests/mocks/futures/account/stop_market_close_position_sell.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/account/stop_market_close_position_sell.json -------------------------------------------------------------------------------- /tests/mocks/futures/market/open_interest_statistics.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/futures/market/open_interest_statistics.json -------------------------------------------------------------------------------- /tests/mocks/general/exchange_info.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/general/exchange_info.json -------------------------------------------------------------------------------- /tests/mocks/general/server_time.json: -------------------------------------------------------------------------------- 1 | { 2 | "serverTime": 1499827319559 3 | } -------------------------------------------------------------------------------- /tests/mocks/market/get_24h_price_stats.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_24h_price_stats.json -------------------------------------------------------------------------------- /tests/mocks/market/get_all_24h_price_stats.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_all_24h_price_stats.json -------------------------------------------------------------------------------- /tests/mocks/market/get_all_book_tickers.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_all_book_tickers.json -------------------------------------------------------------------------------- /tests/mocks/market/get_all_prices.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_all_prices.json -------------------------------------------------------------------------------- /tests/mocks/market/get_average_price.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_average_price.json -------------------------------------------------------------------------------- /tests/mocks/market/get_book_ticker.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_book_ticker.json -------------------------------------------------------------------------------- /tests/mocks/market/get_depth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_depth.json -------------------------------------------------------------------------------- /tests/mocks/market/get_klines.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_klines.json -------------------------------------------------------------------------------- /tests/mocks/market/get_price.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/mocks/market/get_price.json -------------------------------------------------------------------------------- /tests/util_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccxt/binance-rs/HEAD/tests/util_tests.rs --------------------------------------------------------------------------------