module Binance::Spot::Trade
def new_oco_order(symbol:, side:, quantity:, price:, stopPrice:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#new-oco-trade -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:newOrderRespType
(String
) -- -
:stopLimitTimeInForce
(Float
) -- GTC/ FOK/ IOC -
:stopIcebergQty
(Float
) -- -
:stopLimitPrice
(Float
) -- -
:stopClientOrderId
(String
) -- -
:limitIcebergQty
(Float
) -- -
:limitClientOrderId
(String
) -- -
:listClientOrderId
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
stopPrice
(Float
) -- -
price
(Float
) -- -
quantity
(Float
) -- -
side
(String
) -- -
symbol
(String
) -- the symbol
def new_oco_order(symbol:, side:, quantity:, price:, stopPrice:, **kwargs) Binance::Utils::Validation.require_param('symbol', symbol) Binance::Utils::Validation.require_param('side', side) Binance::Utils::Validation.require_param('quantity', quantity) Binance::Utils::Validation.require_param('price', price) Binance::Utils::Validation.require_param('stopPrice', stopPrice) @session.sign_request(:post, '/api/v3/order/oco', params: kwargs.merge( symbol: symbol, side: side, quantity: quantity, price: price, stopPrice: stopPrice )) end