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

Method mgBuy

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

* Creates a 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 {numeric} price - the price to pay for each unit * @param

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

Source from the content-addressed store, hash-verified

5372 * @return {undefined}
5373 */
5374 async mgBuy(symbol: string, quantity: number, price: number, params: Dict = {}, isIsolated = 'FALSE') {
5375 return await this.marginOrder('LIMIT', 'BUY', symbol, quantity, price, { ...params, isIsolated });
5376 }
5377
5378 /**
5379 * Creates a sell order

Callers 1

Calls 1

marginOrderMethod · 0.95

Tested by

no test coverage detected