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

Method buy

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

* Creates a buy 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 {object} flags - additional buy order flags * @return {promise or undefined} - omitting the ca

(symbol: string, quantity: number, price: number, flags = {})

Source from the content-addressed store, hash-verified

962 * @return {promise or undefined} - omitting the callback returns a promise
963 */
964 async buy(symbol: string, quantity: number, price: number, flags = {}) {
965 return await this.order('LIMIT', 'BUY', symbol, quantity, price, flags);
966 }
967
968 /**
969* Creates a sell order

Callers

nothing calls this directly

Calls 1

orderMethod · 0.95

Tested by

no test coverage detected