Learn R Programming

cryptotrackr (version 1.3.3)

okcoin_orders: okcoin_orders

Description

okcoin_orders

Usage

okcoin_orders(
  secret,
  key,
  passphrase,
  instrument_id,
  state,
  timeout_seconds = 60
)

Value

returns a dataframe containing your orders from the most recent 3 months

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.

Examples

Run this code
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