binance_new_order {binancer}R Documentation

Open new order on the Binance account

Description

Open new order on the Binance account

Usage

binance_new_order(
  symbol,
  side = c("BUY", "SELL"),
  type = c("LIMIT", "MARKET", "STOP_LOSS", "STOP_LOSS_LIMIT", "TAKE_PROFIT",
    "TAKE_PROFIT_LIMIT", "LIMIT_MAKER"),
  time_in_force = c("GTC", "IOC", "FOK"),
  quantity,
  price,
  stop_price,
  iceberg_qty,
  test = TRUE
)

Arguments

symbol

string

side

enum

type

enum

time_in_force

optional enum

quantity

number

price

optional number

stop_price

optional number

iceberg_qty

optional number

test

bool

Value

data.table

Examples

## Not run: 
binance_new_order('ARKETH', side = 'BUY', type = 'MARKET', quantity = 1)
binance_new_order('ARKBTC', side = 'BUY', type = 'LIMIT', quantity = 1,
                  price = 0.5, time_in_force = 'GTC')

## End(Not run)

[Package binancer version 1.2.0 Index]