okcoin_orders {cryptotrackr} | R Documentation |
okcoin_orders
Description
okcoin_orders
Usage
okcoin_orders(
secret,
key,
passphrase,
instrument_id,
state,
timeout_seconds = 60
)
Arguments
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. |
Value
returns a dataframe containing your orders from the most recent 3 months
Examples
## Not run:
secret <- "..."
key <- "..."
passphrase <- "..."
instrument_id <- "BTC-USDT"
state <- '2'
orders <- okcoin_orders(secret, key, passphrase, instrument_id, state)
## End(Not run)
[Package cryptotrackr version 1.3.3 Index]