ccxt-compiled
Version:
A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges
22 lines (17 loc) • 566 B
JavaScript
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);
}
};
;