Helper functions for using crypto exchanges API in a simpler way. Currently only Binance and Kucoin are implemented.
fix_time
: Sync the timestamp from the Binance API with the local timestamp to prevent errorsget_klines
: Get the candlesticks for a symbol in a timeframe during a time perioddownload_data
: Save the previous candlesticks into a parquet fileget_data
: Open a given parquet filecreate_order
: Only in Binance. Places an smart order. Both quantity or notional can be specified and limit / market / stop orders are automatically distinguishedget_orders
: Only in Binance. Get a list of all open orders in a given market (Spot / USDM / COINM)cancel_orders
: Only in Binance. Cancel all open orders in a given marketget_positions
: Only in Binance. Get a list of all open positions in a given marketclose_positions
: Only in Binance. Automatically closes all open positions in a given market
There are no warranties expressed or implied in this repository. I am not responsible for anything done with this program. You assume all responsibility and liability. Use it at your own risk.