* @method * @name hyperliquid#createOrder * @description create a trade order * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order * @param {string} symbol unified symbol of the market to create an order in * @param {stri
(symbol: string, type: OrderType, side: OrderSide, amount: number, price: Num = undefined, params = {})
| 2064 | * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure} |
| 2065 | */ |
| 2066 | async createOrder (symbol: string, type: OrderType, side: OrderSide, amount: number, price: Num = undefined, params = {}) { |
| 2067 | await this.loadMarkets (); |
| 2068 | const [ order, globalParams ] = this.parseCreateEditOrderArgs (undefined, symbol, type, side, amount, price, params); |
| 2069 | const orders = await this.createOrders ([ order as any ], globalParams); |
| 2070 | return orders[0]; |
| 2071 | } |
| 2072 | |
| 2073 | /** |
| 2074 | * @method |
nothing calls this directly
no test coverage detected