Last active
November 25, 2022 11:42
-
-
Save JohnAllen/e2a37942bf74829c3dcd03fe6b89edd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type SymbolMapping struct { | |
IBSymbol string | |
FirstRateSymbol string | |
TickDataSymbol string | |
Name string | |
} | |
var SymbolMappings = []SymbolMapping{ | |
{IBSymbol: "ES", FirstRateSymbol: "ES", TickDataSymbol: "ES", Name: "S&P 500"}, | |
{IBSymbol: "NQ", FirstRateSymbol: "NQ", TickDataSymbol: "NQ", Name: "Nasdaq 100"}, | |
{IBSymbol: "YM", FirstRateSymbol: "YM", TickDataSymbol: "YM", Name: "Dow Jones"}, | |
{IBSymbol: "RTY", FirstRateSymbol: "RTY", TickDataSymbol: "RTY", Name: "Russell 2000"}, | |
{IBSymbol: "CL", FirstRateSymbol: "CL", TickDataSymbol: "CL", Name: "Crude Oil"}, | |
{IBSymbol: "GC", FirstRateSymbol: "GC", TickDataSymbol: "GC", Name: "Gold"}, | |
{IBSymbol: "SI", FirstRateSymbol: "SI", TickDataSymbol: "SI", Name: "Silver"}, | |
{IBSymbol: "HG", FirstRateSymbol: "HG", TickDataSymbol: "HG", Name: "Copper"}, | |
{IBSymbol: "ZB", FirstRateSymbol: "ZB", TickDataSymbol: "ZB", Name: "30 Year Treasury"}, | |
{IBSymbol: "ZN", FirstRateSymbol: "ZN", TickDataSymbol: "ZN", Name: "10 Year Treasury"}, | |
{IBSymbol: "NZD", FirstRateSymbol:, TickDataSymbol: "N6", Name: "New Zealand Dollar"}, | |
{IBSymbol: "AUD", FirstRateSymbol:, TickDataSymbol: "A6", Name: "Australian Dollar"}, | |
{IBSymbol: "CAD", FirstRateSymbol:, TickDataSymbol: "AD", Name: "Canadian Dollar"}, | |
{IBSymbol: "GBP", FirstRateSymbol:, TickDataSymbol: "B6", Name: "British Pound"}, | |
{IBSymbol: "BZ", FirstRateSymbol: "BZ", TickDataSymbol: "", Name: "Brent Last Day"}, | |
{IBSymbol: "EUR"FirstRateSymbol:, "E6", TickDataSymbol: "", Name: "Euro"}, | |
{IBSymbol: "JPY"FirstRateSymbol:, "J1", TickDataSymbol: "", Name: "Japanese Yen"}, | |
{IBSymbol: "CHF"FirstRateSymbol:, "S6", TickDataSymbol: "", Name: "Swiss Franc"}, | |
{IBSymbol: "DX", FirstRateSymbol: "DX", TickDataSymbol: "", Name: "US Dollar Index"}, | |
{IBSymbol: "BTC"FirstRateSymbol:, "BTC", TickDataSymbol: "", Name: "Bitcoin"}, | |
{IBSymbol: "ZC", FirstRateSymbol: "ZC", TickDataSymbol: "CN", Name: "Corn"}, | |
{IBSymbol: "ZS", FirstRateSymbol: "ZS", TickDataSymbol: "ZS", Name: "Soybeans"}, | |
{IBSymbol: "ZM", FirstRateSymbol: "ZM", TickDataSymbol: "ZM", Name: "Soybean Meal"}, | |
{IBSymbol: "ZL", FirstRateSymbol: "ZL", TickDataSymbol: "BO", Name: "Soybean Oil"}, | |
{IBSymbol: "ZW", FirstRateSymbol: "ZW", TickDataSymbol: "", Name: "Wheat"}, | |
{IBSymbol: "CT", FirstRateSymbol: "ZT", TickDataSymbol: "", Name: "Cotton"}, | |
{IBSymbol: "KC", FirstRateSymbol: "KC", TickDataSymbol: "", Name: "Coffee"}, | |
{IBSymbol: "SB", FirstRateSymbol: "SB", TickDataSymbol: "", Name: "Sugar"}, | |
{IBSymbol: "C", FirstRateSymbol: "CA", TickDataSymbol: "", Name: "Cocoa"}, | |
{IBSymbol: "OJ", FirstRateSymbol: "OJ", TickDataSymbol: "", Name: "Orange Juice"}, | |
{IBSymbol: "", FirstRateSymbol: "MP", TickDataSymbol: "", Name: "Mexican Peso"}, | |
{IBSymbol: "", FirstRateSymbol: "VX", TickDataSymbol: "", Name: "VIX"}, | |
{IBSymbol: "NG", FirstRateSymbol: "NG", TickDataSymbol: "", Name: "Henry Hub Natural Gas"}, | |
{IBSymbol: "RB", FirstRateSymbol: "RB", TickDataSymbol: "RB", Name: "RBOB Gasoline Futures "}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment