get_positions_history | R Documentation |
Wrapper for API Get positions history.
get_positions_history(
api_key,
secret_key,
passphrase,
count = 90,
period = 10,
...
)
api_key |
Okx API key. |
secret_key |
Okx API secret key. |
passphrase |
Okx API passphrase. |
count |
Retrieve position data for a specified number of past days, with a maximum of 90(days) |
period |
Due to the 'Number of results per request' limitation of the API,
the |
... |
Other request parameters to be passed, See Get positions history for more information. |
Position data
## Not run:
positions <- get_positions_history(
api_key, secret_key, passphrase, count = 90, period = 10,
instType = "SWAP", mgnMode = "isolated"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.