createLimitOrder
Provides a method to create a buy or sell order for the specified market:
Properties
symbol
The market symbol
The symbol expression is a combination of
base_ticker
, a colon (':'), andquote_ticker
.
orderType
The order type for a new order
price
The desired amount for buying or selling, expressed in the quote token
requestAmount
The desired quantity of the base token for buying or selling
signer
(optional)The user's wallet placing the order
Nectar is a non-custodial exchange, which is why it requires user signatures for each order. User wallet is essential for performing these signatures.
If the
private_key
parameter is provided during the creation of a Nectar instance, or if theNODE_NECTAR_WALLET_SECRET
environment variable is set before creating a Nectar instance, then the user wallet can be omitted.
OrderType Choices
Result
The result of this method is a created order ID:
e.g.
order_id
The unique value of the this created order provided by Nectar