View source: R/wrappers_get_copy_trade.R
| get_copy_trade_historical_subpos | R Documentation |
Retrieve your historical copy trading subpositions.
get_copy_trade_historical_subpos(
inst_type = NULL,
inst_id = NULL,
after = NULL,
before = NULL,
limit = NULL,
config,
tz = .okx_default_tz
)
inst_type |
Character or 'NULL'. Instrument type filter. |
inst_id |
Character or 'NULL'. Instrument ID filter. |
after |
Character or 'NULL'. Pagination cursor for earlier records. |
before |
Character or 'NULL'. Pagination cursor for newer records. |
limit |
Integer or 'NULL'. Number of rows to request. |
config |
List. API credentials/config, typically containing 'api_key', 'secret_key', and 'passphrase'. |
tz |
Character. Time zone for parsing timestamps. Default '"Asia/Hong_Kong"'. |
Wraps '/api/v5/copytrading/subpositions-history'. Returns one row per closed or historical subposition.
A 'data.frame' with fields like 'instId' and 'uniqueCode'.
Since okxr 0.1.2
[get_copy_trade_current_subpos()]
## Not run:
cfg <- list(api_key = "xxx", secret_key = "xxx", passphrase = "xxx")
hist <- get_copy_trade_historical_subpos(config = cfg)
head(hist)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.