UNPKG

ccxt-js

Version:

The node.js portion of original ccxt cryptocurrency trading library with support for 100+ exchanges. It reduces the size of the library from 40MB to 8MB

23 lines (17 loc) 568 B
"use strict"; module.exports = class Market { constructor (exchange, symbol) { this.exchange = exchange; this.symbol = symbol; this.market = exchange.markets[symbol]; } amountToPrecision (amount) { return this.exchange.amountToPrecision (this.symbol, amount) } createLimitBuyOrder(amount, price) { return this.exchange.createLimitBuyOrder (this.symbol, amount, price) } createLimitSellOrder(amount, price) { return this.exchange.createLimitSellOrder (this.symbol, amount, price) } }