UNPKG

ib

Version:

Interactive Brokers TWS (or IB Gateway) API client library for Node.js

15 lines (11 loc) 303 B
var assert = require('assert'); var _ = require('lodash'); module.exports = function (symbol, currency, exchange) { assert(_.isString(symbol), 'Symbol must be a string.'); return { currency: currency || 'USD', exchange: exchange || 'SMART', secType: 'BAG', symbol: symbol }; };