Okx
OKXKlines
¶
A class that helps downloading klines from OKX.
Usage
load_klines
¶
Load klines from the past X days. OKX's api is limited in to a max of 100 items. This method, will loop until it finds the amount needed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
instrument |
str
|
The instrument to fetch |
required |
tf |
str
|
The timeframe to fetch |
required |
days_ago |
int
|
The number of days ago to look at |
1
|
end |
The end date |
now()
|