powered by
okcoin_orders
okcoin_orders( secret, key, passphrase, instrument_id, state, timeout_seconds = 60 )
returns a dataframe containing your orders from the most recent 3 months
your secret key for Okcoin
your API key for Okcoin
the passphrase which you created when generating your Okcoin API key
the trading pair symbol
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)
seconds until the query times out. Default is 60.
if (FALSE) { secret <- "..." key <- "..." passphrase <- "..." instrument_id <- "BTC-USDT" state <- '2' orders <- okcoin_orders(secret, key, passphrase, instrument_id, state)}
Run the code above in your browser using DataLab