ig-trader
Version:
A client to programmatically spreadbet with IG
222 lines (220 loc) • 5.32 kB
JavaScript
const timeframes = ['SECOND', 'MINUTE', 'MINUTE_2', 'MINUTE_3', 'MINUTE_5', 'MINUTE_15', 'MINUTE_30', 'HOUR', 'HOUR_2', 'HOUR_3', 'HOUR_4', 'DAY', 'WEEK', 'MONTH']
const markets = [{
epic: 'CS.D.GBPUSD.TODAY.IP',
instrumentName: 'GBP/USD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 1.2,
retailMarginPct: 0.033
}, {
epic: 'CS.D.USDJPY.TODAY.IP',
instrumentName: 'USD/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 1,
retailMarginPct: 0.033
}, {
epic: 'CS.D.EURCHF.TODAY.IP',
instrumentName: 'EUR/CHF',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.3,
retailMarginPct: 0.033
}, {
epic: 'CS.D.EURGBP.TODAY.IP',
instrumentName: 'EUR/GBP',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 1.2,
retailMarginPct: 0.033
}, {
epic: 'CS.D.EURJPY.TODAY.IP',
instrumentName: 'EUR/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 1.8,
retailMarginPct: 0.033
}, {
epic: 'CS.D.EURUSD.TODAY.IP',
instrumentName: 'EUR/USD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 1,
retailMarginPct: 0.033
}, {
epic: 'CS.D.GBPJPY.TODAY.IP',
instrumentName: 'GBP/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.8,
retailMarginPct: 0.033
}, {
epic: 'CS.D.AUDJPY.TODAY.IP',
instrumentName: 'AUD/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 1.6,
retailMarginPct: 0.05
}, {
epic: 'CS.D.AUDUSD.TODAY.IP',
instrumentName: 'AUD/USD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 1,
retailMarginPct: 0.05
}, {
epic: 'CS.D.CHFJPY.TODAY.IP',
instrumentName: 'CHF/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.3,
retailMarginPct: 0.033
}, {
epic: 'CS.D.EURAUD.TODAY.IP',
instrumentName: 'EUR/AUD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.1,
retailMarginPct: 0.05
}, {
epic: 'CS.D.GBPAUD.TODAY.IP',
instrumentName: 'GBP/AUD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.2,
retailMarginPct: 0.05
}, {
epic: 'CS.D.GBPCHF.TODAY.IP',
instrumentName: 'GBP/CHF',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 3.3,
retailMarginPct: 0.033
}, {
epic: 'CS.D.CADJPY.TODAY.IP',
instrumentName: 'CAD/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.8,
retailMarginPct: 0.033
}, {
epic: 'CS.D.EURCAD.TODAY.IP',
instrumentName: 'EUR/CAD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 3.3,
retailMarginPct: 0.033
}, {
epic: 'CS.D.GBPCAD.TODAY.IP',
instrumentName: 'GBP/CAD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 3.8,
retailMarginPct: 0.033
}, {
epic: 'CS.D.AUDCAD.TODAY.IP',
instrumentName: 'AUD/CAD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.3,
retailMarginPct: 0.05
}, {
epic: 'CS.D.EURNZD.TODAY.IP',
instrumentName: 'EUR/NZD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 3.3,
retailMarginPct: 0.05
}, {
epic: 'CS.D.AUDNZD.TODAY.IP',
instrumentName: 'AUD/NZD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 3.3,
retailMarginPct: 0.05
}, {
epic: 'CS.D.NZDUSD.TODAY.IP',
instrumentName: 'NZD/USD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.3,
retailMarginPct: 0.05
}, {
epic: 'CS.D.NZDJPY.TODAY.IP',
instrumentName: 'NZD/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.8,
retailMarginPct: 0.05
}, {
epic: 'CS.D.AUDCHF.TODAY.IP',
instrumentName: 'AUD/CHF',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.3,
retailMarginPct: 0.05
}, {
epic: 'CS.D.NZDCAD.TODAY.IP',
instrumentName: 'NZD/CAD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 3.8,
retailMarginPct: 0.05
}, {
epic: 'CS.D.USDSGD.TODAY.IP',
instrumentName: 'USD/SGD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 3.1,
retailMarginPct: 0.05
}, {
epic: 'CS.D.GBPSGD.TODAY.IP',
instrumentName: 'GBP/SGD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 5.1,
retailMarginPct: 0.05
}, {
epic: 'CS.D.SGDJPY.TODAY.IP',
instrumentName: 'SGD/JPY',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 4.1,
retailMarginPct: 0.05
}, {
epic: 'CS.D.EURSGD.TODAY.IP',
instrumentName: 'EUR/SGD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 4.1,
retailMarginPct: 0.05
}, {
epic: 'CS.D.AUDSGD.TODAY.IP',
instrumentName: 'AUD/SGD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 4.1,
retailMarginPct: 0.05
}, {
epic: 'CS.D.USDCHF.TODAY.IP',
instrumentName: 'USD/CHF',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.3,
retailMarginPct: 0.033
}, {
epic: 'CS.D.USDCAD.TODAY.IP',
instrumentName: 'USD/CAD',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2,
retailMarginPct: 0.033
}, {
epic: 'CS.D.CADCHF.TODAY.IP',
instrumentName: 'CAD/CHF',
instrumentType: 'CURRENCIES',
expiry: 'DFB',
maxSpread: 2.8,
retailMarginPct: 0.033
}]
module.exports = { timeframes, markets }