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