spot-new-order | R Documentation |
Exposes the POST /api/v3/order/
endpoint.
spot_new_order(
order_type,
symbol,
side,
quantity,
price = NULL,
time_in_force = NULL,
test = FALSE,
fills = TRUE
)
spot_new_market_order(...)
spot_new_limit_order(...)
order_type |
Order type. One of |
symbol |
Symbol. |
side |
Trade side. Either |
quantity |
Amount to buy or sell. |
price |
Price at which to buy or sell. |
time_in_force |
Time for which order is valid. Options are: |
test |
Is this just a test? |
fills |
Whether to returns |
... |
Further arguments passed to or from other methods. |
A data frame.
## Not run:
# Create new order (returns a data frame).
spot_new_order(
order_type = "LIMIT",
symbol = "LTCUSDT",
side = "SELL",
quantity = 1,
price = 67,
time_in_force = "GTC"
)
# Test new order creation (returns a Boolean).
spot_new_order(
order_type = "LIMIT",
symbol = "LTCUSDT",
side = "SELL",
quantity = 1,
price = 67,
time_in_force = "GTC",
test = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.