binance_new_order: Open new order on the Binance account

Description Usage Arguments Value Examples

View source: R/binance.R

Description

Open new order on the Binance account

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

1
2
3
4
5
6
## 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)

binancer documentation built on Nov. 30, 2021, 1:07 a.m.