UNPKG

hamal-models

Version:
36 lines (29 loc) 773 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Created by Grea on 9/14/17. */ function Depth(market, _ref) { var asks = _ref.asks, bids = _ref.bids; return { market: market, asks: asks, bids: bids }; } function Ticker(market, _ref2) { var ask = _ref2.ask, bid = _ref2.bid, last = _ref2.last; return { market: market, ask: ask, bid: bid, last: last }; } function OrderForSend(_ref3) { var type = _ref3.type, currency = _ref3.currency, asset = _ref3.asset, price = _ref3.price, amount = _ref3.amount; return { type: type, currency: currency, asset: asset, price: price, amount: amount }; } exports.Depth = Depth; exports.Ticker = Ticker; exports.OrderForSend = OrderForSend;