View source: R/wrappers_get_copy_trade.R
| get_copy_trade_current_subpos | R Documentation |
Retrieve your currently active subpositions under copy trading.
get_copy_trade_current_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/current-subpositions'. Returns one row per subposition, associated with the relevant lead trader.
A 'data.frame' with fields like 'instId' and 'uniqueCode'.
Since okxr 0.1.2
[get_copy_trade_historical_subpos()]
## Not run:
cfg <- list(api_key = "xxx", secret_key = "xxx", passphrase = "xxx")
get_copy_trade_current_subpos(config = cfg)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.