binance_usdm
Classes¶
BinanceUSDM ¶
Bases: Exchange
Functions¶
get_all_symbols_info ¶
get_all_symbols_info()
Parameters:
Name | Type | Description | Default |
---|---|---|---|
None |
|
required |
Returns:
Type | Description |
---|---|
Dictionary
|
dictionary of info about the symbols |
get_candles ¶
get_candles(symbol, timeframe, since_datetime=None, until_datetime=None, candles_to_dl=1500)
Summary
Explainer Video
Coming Soon but if you want/need it now please let me know in discord or telegram and i will make it for you
Parameters:
Name | Type | Description | Default |
---|---|---|---|
symbol |
str
|
Use get_symbols_list if you need to know the symbols |
required |
timeframe |
str
|
"1m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "12h", "d", "w" |
required |
since_datetime |
datetime
|
The start date, in datetime format, of candles you want to download. EX: datetime(year, month, day, hour, minute) |
None
|
until_datetime |
datetime
|
The until date, in datetime format, of candles you want to download minus one candle so if you are on the 5 min if you say your until date is 1200 your last candle will be 1155. EX: datetime(year, month, day, hour, minute) |
None
|
candles_to_dl |
int
|
The amount of candles you want to download |
1500
|
Returns:
Type | Description |
---|---|
array
|
a 2 dim array with the following columns "timestamp", "open", "high", "low", "close", "volume" |
get_exchange_info ¶
get_exchange_info()
Parameters:
Name | Type | Description | Default |
---|---|---|---|
None |
|
required |
Returns:
Type | Description |
---|---|
Dictionary
|
dictionary of info about the exchange |
get_symbols_list ¶
get_symbols_list()
Parameters:
Name | Type | Description | Default |
---|---|---|---|
None |
|
required |
Returns:
Type | Description |
---|---|
List
|
List of exchange symbols |