MCPcopy Create free account
hub / github.com/ccxt/ccxt / createOrder

Method createOrder

ts/src/hyperliquid.ts:2066–2071  ·  view source on GitHub ↗

* @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 = {})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

createOrdersMethod · 0.95
loadMarketsMethod · 0.45

Tested by

no test coverage detected