powered by
Spot: Place Market Order
cb_mkt_order(client_order_id = cb_get_order_id(), product_id, side, base_size)
returns order details as a data.frame for market orders
data.frame
= (string) A unique ID provided for the order (used for identification purposes) Example: 0000-00000-000000
= (string) The trading pair (e.g. 'BTC-USD'). Example: BTC-USD
= (string) The side of the market that the order is on (e.g. 'BUY', 'SELL'). Possible values: BUY, SELL
= (string) The amount of the first Asset in the Trading Pair. Example: 0.001
if (FALSE) { cb_mkt_order(product_id = "BTC-USD", side = "BUY", base_size = '0.00001') }
Run the code above in your browser using DataLab