MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / mgMarketBuy

Method mgMarketBuy

src/node-binance-api.ts:5401–5403  ·  view source on GitHub ↗

* Creates a market buy order * @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-Order * @param {string} symbol - the symbol to buy * @param {numeric} quantity - the quantity required * @param {object} flags - additional buy order flags * @para

(symbol: string, quantity: number, params: Dict = {}, isIsolated = 'FALSE')

Source from the content-addressed store, hash-verified

5399 * @return {undefined}
5400 */
5401 async mgMarketBuy(symbol: string, quantity: number, params: Dict = {}, isIsolated = 'FALSE') {
5402 return await this.marginOrder('MARKET', 'BUY', symbol, quantity, 0, { ...params, isIsolated });
5403 }
5404
5405 /**
5406 * Creates a market sell order

Callers 1

Calls 1

marginOrderMethod · 0.95

Tested by

no test coverage detected