okcoin_orders | R Documentation |
okcoin_orders
okcoin_orders(
secret,
key,
passphrase,
instrument_id,
state,
timeout_seconds = 60
)
secret |
your secret key for Okcoin |
key |
your API key for Okcoin |
passphrase |
the passphrase which you created when generating your Okcoin API key |
instrument_id |
the trading pair symbol |
state |
Order Status: -1: Canceled, 0: Open, 1: Partially Filled, 2: Fully Filled, 3: Submitting, 4: Canceling, 6: Incomplete (open + partially filled), 7: Complete (canceled + fully filled) |
timeout_seconds |
seconds until the query times out. Default is 60. |
returns a dataframe containing your orders from the most recent 3 months
## Not run:
secret <- "..."
key <- "..."
passphrase <- "..."
instrument_id <- "BTC-USDT"
state <- '2'
orders <- okcoin_orders(secret, key, passphrase, instrument_id, state)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.