123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587 |
- package markinfo
- const (
- EURUSD = iota
- GBPUSD
- USDJPY
- USDCHF
- AUDUSD
- USDCAD
- NZDUSD
- EURGBP
- EURJPY
- EURCHF
- EURAUD
- EURCAD
- GBPCHF
- GBPJPY
- CHFJPY
- CADJPY
- AUDJPY
- AUDCAD
- USDMXN
- AUDNZD
- XAGUSD
- XAUUSD
- OILUSD
- USDTRY
- GBPAUD //from lmax symbol list
- GBPCAD
- EURCZK
- GBPCZK
- USDCZK
- EURDKK
- GBPDKK
- USDDKK
- EURHKD
- GBPHKD
- USDHKD
- EURHUF
- GBPHUF
- USDHUF
- EURMXN
- GBPMXN
- EURNOK
- GBPNOK
- USDNOK
- EURNZD
- GBPNZD
- EURPLN
- GBPPLN
- USDPLN
- EURSEK
- GBPSEK
- USDSEK
- EURSGD
- GBPSGD
- USDSGD
- EURTRY
- GBPTRY
- EURZAR
- GBPZAR
- USDZAR
- NZDJPY
- AUDCHF
- CADCHF
- NZDCAD
- NZDCHF
- NZDSGD
- SGDJPY
- XAGEUR
- XAUEUR
- ZARJPY
- LTCUSD
- BTCUSD
- BTCCNY
- LTCCNY
- BTCFUSD
- BTCETH
- ETHCNY
- ETCCNY
- SCCNY
- BTYCNY
- ZECCNY
- BTSCNY
- BCCCNY
- NYCCCNY
- WTCCNY
- ETHBTC
- ETCBTC
- ZECBTC
- LTCBTC
- BCCBTC
- BCCUSDT
- BTCUSDT
- ZECUSDT
- LTCUSDT
- ETCUSDT
- ETHUSDT
- BTYUSDT
- BTSUSDT
- SCUSDT
- BTYBTC
- BTSBTC
- SCBTC
- YCCUSDT
- BTCSUSDT
- DCRUSDT
- CurrencyCount
- UK100
- WS30
- SPX
- NDX
- GDAXI
- FCHI
- STOXX50E
- AEX
- CLQ2
- CLU2
- CLV2
- LCOQ2
- LCOU2
- LCOV2
- GCQ2
- LGON2
- LGOQ2
- LGOU2
- FXCount
- SH510300
- SH000300
- TF03
- TF06
- TF09
- TF12
- TFMI
- IF01
- IF02
- IF03
- IF04
- IF05
- IF06
- IF07
- IF08
- IF09
- IF10
- IF11
- IF12 //数据放在data中,IF120
- IF16
- IF17
- IF18
- IF19
- IFMI
- IF1509
- IF1510
- AG1512
- AU1512
- RB1601
- RB1610
- RU1601
- SR1601
- ZN12
- RB05
- RB0
- AG06
- MAC
- FuturesCount
- SymbolCount
- )
- var symbolMap map[string]int
- var symbols = map[int]string{
- MAC: "MAC",
- EURUSD: "EURUSD",
- GBPUSD: "GBPUSD",
- USDJPY: "USDJPY",
- USDCHF: "USDCHF",
- AUDUSD: "AUDUSD",
- USDCAD: "USDCAD",
- NZDUSD: "NZDUSD",
- EURGBP: "EURGBP",
- EURJPY: "EURJPY",
- EURCHF: "EURCHF",
- EURAUD: "EURAUD",
- EURCAD: "EURCAD",
- GBPCHF: "GBPCHF",
- GBPJPY: "GBPJPY",
- CHFJPY: "CHFJPY",
- CADJPY: "CADJPY",
- AUDJPY: "AUDJPY",
- AUDCAD: "AUDCAD",
- USDMXN: "USDMXN",
- AUDNZD: "AUDNZD",
- XAGUSD: "XAGUSD",
- XAUUSD: "XAUUSD",
- OILUSD: "OILUSD",
- USDTRY: "USDTRY",
- GBPAUD: "GBPAUD",
- GBPCAD: "GBPCAD",
- EURCZK: "EURCZK",
- GBPCZK: "GBPCZK",
- USDCZK: "USDCZK",
- EURDKK: "EURDKK",
- GBPDKK: "GBPDKK",
- USDDKK: "USDDKK",
- EURHKD: "EURHKD",
- GBPHKD: "GBPHKD",
- USDHKD: "USDHKD",
- EURHUF: "EURHUF",
- GBPHUF: "GBPHUF",
- USDHUF: "USDHUF",
- EURMXN: "EURMXN",
- GBPMXN: "GBPMXN",
- EURNOK: "EURNOK",
- GBPNOK: "GBPNOK",
- USDNOK: "USDNOK",
- EURNZD: "EURNZD",
- GBPNZD: "GBPNZD",
- EURPLN: "EURPLN",
- GBPPLN: "GBPPLN",
- USDPLN: "USDPLN",
- EURSEK: "EURSEK",
- GBPSEK: "GBPSEK",
- USDSEK: "USDSEK",
- EURSGD: "EURSGD",
- GBPSGD: "GBPSGD",
- USDSGD: "USDSGD",
- EURTRY: "EURTRY",
- GBPTRY: "GBPTRY",
- EURZAR: "EURZAR",
- GBPZAR: "GBPZAR",
- USDZAR: "USDZAR",
- NZDJPY: "NZDJPY",
- AUDCHF: "AUDCHF",
- CADCHF: "CADCHF",
- NZDCAD: "NZDCAD",
- NZDCHF: "NZDCHF",
- NZDSGD: "NZDSGD",
- SGDJPY: "SGDJPY",
- XAGEUR: "XAGEUR",
- XAUEUR: "XAUEUR",
- ZARJPY: "ZARJPY",
- LTCUSD: "LTCUSD",
- BTCUSD: "BTCUSD",
- BTCCNY: "BTCCNY",
- LTCCNY: "LTCCNY",
- BTCFUSD: "BTCFUSD",
- BTCETH: "BTCETH",
- ETHCNY: "ETHCNY",
- ETCCNY: "ETCCNY",
- BTYCNY: "BTYCNY",
- SCCNY: "SCCNY",
- ZECCNY: "ZECCNY",
- BTSCNY: "BTSCNY",
- BCCCNY: "BCCCNY",
- NYCCCNY: "NYCCCNY",
- WTCCNY: "WTCCNY",
- ETHBTC: "ETHBTC",
- ETCBTC: "ETCBTC",
- ZECBTC: "ZECBTC",
- LTCBTC: "LTCBTC",
- BCCBTC: "BCCBTC",
- BCCUSDT: "BCCUSDT",
- BTCUSDT: "BTCUSDT",
- ZECUSDT: "ZECUSDT",
- LTCUSDT: "LTCUSDT",
- ETCUSDT: "ETCUSDT",
- ETHUSDT: "ETHUSDT",
- BTYUSDT: "BTYUSDT",
- BTSUSDT: "BTSUSDT",
- SCUSDT: "SCUSDT",
- BTYBTC: "BTYBTC",
- BTSBTC: "BTSBTC",
- SCBTC: "SCBTC",
- YCCUSDT: "YCCUSDT",
- BTCSUSDT: "BTCSUSDT",
- DCRUSDT: "DCRUSDT",
- UK100: "UK100",
- WS30: "WS30",
- SPX: "SPX",
- NDX: "NDX",
- GDAXI: "GDAXI",
- FCHI: "FCHI",
- STOXX50E: "STOXX50E",
- AEX: "AEX",
- CLQ2: "CLQ2",
- CLU2: "CLU2",
- CLV2: "CLV2",
- LCOQ2: "LCOQ2",
- LCOU2: "LCOU2",
- LCOV2: "LCOV2",
- GCQ2: "GCQ2",
- LGON2: "LGON2",
- LGOQ2: "LGOQ2",
- LGOU2: "LGOU2",
- FXCount: "FXCount",
- SH510300: "SH510300",
- SH000300: "SH000300",
- TF03: "TF03",
- TF06: "TF06",
- TF09: "TF09",
- TF12: "TF12",
- TFMI: "TFMI",
- IF01: "IF01",
- IF02: "IF02",
- IF03: "IF03",
- IF04: "IF04",
- IF05: "IF05",
- IF06: "IF06",
- IF07: "IF07",
- IF08: "IF08",
- IF09: "IF09",
- IF10: "IF10",
- IF11: "IF11",
- IF12: "IF12",
- IF16: "IF16",
- IF17: "IF17",
- IF18: "IF18",
- IF19: "IF19",
- IFMI: "IFMI",
- IF1509: "IF1509",
- IF1510: "IF1510",
- AG1512: "AG1512",
- AU1512: "AU1512",
- RB1610: "RB1610",
- RU1601: "RU1601",
- SR1601: "SR1601",
- ZN12: "ZN12",
- RB05: "RB05",
- RB0: "RB0",
- AG06: "AG06",
- FuturesCount: "FuturesCount",
- SymbolCount: "SymbolCount",
- CurrencyCount: "CurrencyCount",
- }
- var symbolUnit map[string]float64
- var symbolUnitInt = map[int]float64{
- CurrencyCount: 0.001,
- MAC: 0.001,
- EURUSD: 0.00001,
- GBPUSD: 0.00001,
- USDJPY: 0.001,
- USDCHF: 0.00001,
- AUDUSD: 0.00001,
- USDCAD: 0.00001,
- NZDUSD: 0.00001,
- EURGBP: 0.00001,
- EURJPY: 0.001,
- EURCHF: 0.00001,
- EURAUD: 0.00001,
- EURCAD: 0.00001,
- GBPCHF: 0.00001,
- GBPJPY: 0.001,
- CHFJPY: 0.001,
- CADJPY: 0.001,
- AUDJPY: 0.001,
- AUDCAD: 0.00001,
- USDMXN: 0.00001,
- AUDNZD: 0.00001,
- XAGUSD: 0.001,
- XAUUSD: 0.001,
- OILUSD: 0.001,
- USDTRY: 0.00001,
- GBPAUD: 0.00001,
- GBPCAD: 0.00001,
- EURCZK: 0.0001,
- GBPCZK: 0.0001,
- USDCZK: 0.0001,
- EURDKK: 0.00001,
- GBPDKK: 0.00001,
- USDDKK: 0.00001,
- EURHKD: 0.00001,
- GBPHKD: 0.00001,
- USDHKD: 0.00001,
- EURHUF: 0.001,
- GBPHUF: 0.001,
- USDHUF: 0.001,
- EURMXN: 0.00001,
- GBPMXN: 0.00001,
- EURNOK: 0.00001,
- GBPNOK: 0.00001,
- USDNOK: 0.00001,
- EURNZD: 0.00001,
- GBPNZD: 0.00001,
- EURPLN: 0.00001,
- GBPPLN: 0.00001,
- USDPLN: 0.00001,
- EURSEK: 0.00001,
- GBPSEK: 0.00001,
- USDSEK: 0.00001,
- EURSGD: 0.00001,
- GBPSGD: 0.00001,
- USDSGD: 0.00001,
- EURTRY: 0.00001,
- GBPTRY: 0.00001,
- EURZAR: 0.00001,
- GBPZAR: 0.00001,
- USDZAR: 0.00001,
- NZDJPY: 0.001,
- AUDCHF: 0.00001,
- CADCHF: 0.00001,
- NZDCAD: 0.00001,
- NZDCHF: 0.00001,
- NZDSGD: 0.00001,
- SGDJPY: 0.001,
- XAGEUR: 0.00001,
- XAUEUR: 0.00001,
- ZARJPY: 0.001,
- LTCUSD: 0.00001,
- BTCUSD: 0.001,
- BTCCNY: 0.001,
- LTCCNY: 0.001,
- BTCFUSD: 0.001,
- BTCETH: 0.00000001,
- BTYCNY: 0.001,
- ETHCNY: 0.00001,
- ETCCNY: 0.00001,
- SCCNY: 0.00001,
- ZECCNY: 0.00001,
- BTSCNY: 0.00001,
- BCCCNY: 0.00001,
- NYCCCNY: 0.00001,
- WTCCNY: 0.00001,
- ETHBTC: 0.00001,
- ETCBTC: 0.00001,
- ZECBTC: 0.00001,
- LTCBTC: 0.00001,
- BCCBTC: 0.00001,
- BCCUSDT: 0.00001,
- BTCUSDT: 0.00001,
- ZECUSDT: 0.00001,
- LTCUSDT: 0.00001,
- ETCUSDT: 0.00001,
- ETHUSDT: 0.00001,
- BTYUSDT: 0.00001,
- BTSUSDT: 0.00001,
- SCUSDT: 0.00001,
- BTYBTC: 0.00001,
- BTSBTC: 0.00001,
- SCBTC: 0.00001,
- YCCUSDT: 0.00001,
- BTCSUSDT: 0.00001,
- DCRUSDT: 0.00001,
- UK100: 0.1,
- WS30: 0.1,
- SPX: 0.1,
- NDX: 0.1,
- GDAXI: 0.1,
- FCHI: 0.1,
- STOXX50E: 0.1,
- AEX: 0.1,
- CLQ2: 0.1,
- CLU2: 0.1,
- CLV2: 0.1,
- LCOQ2: 0.1,
- LCOU2: 0.1,
- LCOV2: 0.1,
- GCQ2: 0.1,
- LGON2: 0.1,
- LGOQ2: 0.1,
- LGOU2: 0.1,
- SH000300: 0.1,
- IFMI: 0.1,
- SH510300: 0.1,
- TF03: 0.1,
- TF06: 0.1,
- TF09: 0.1,
- TF12: 0.1,
- TFMI: 0.1,
- IF01: 0.1,
- IF02: 0.1,
- IF03: 0.1,
- IF04: 0.1,
- IF05: 0.1,
- IF06: 0.1,
- IF07: 0.1,
- IF08: 0.1,
- IF09: 0.1,
- IF10: 0.1,
- IF11: 0.1,
- IF12: 0.1,
- IF16: 0.1,
- IF17: 0.1,
- IF18: 0.1,
- IF19: 0.1,
- IF1509: 0.1,
- AG1512: 0.1,
- AU1512: 0.1,
- RB1601: 0.1,
- RB1610: 0.1,
- RU1601: 0.1,
- SR1601: 0.1,
- ZN12: 1,
- RB05: 1,
- RB0: 1,
- AG06: 1,
- }
- var symbolIdBookId map[int]int
- var bookIdSymbolId = map[int]int{
- 1111: MAC,
- 4008: AUDJPY,
- 4007: AUDUSD,
- 4009: CHFJPY,
- 4016: EURAUD,
- 4015: EURCAD,
- 4011: EURCHF,
- 4003: EURGBP,
- 4006: EURJPY,
- 4001: EURUSD,
- 4017: GBPAUD,
- 4014: GBPCAD,
- 4012: GBPCHF,
- 4005: GBPJPY,
- 4002: GBPUSD,
- 4013: USDCAD,
- 4010: USDCHF,
- 4004: USDJPY,
- 100479: EURCZK,
- 100481: GBPCZK,
- 100483: USDCZK,
- 100485: EURDKK,
- 100487: GBPDKK,
- 100489: USDDKK,
- 100491: EURHKD,
- 100493: GBPHKD,
- 100495: USDHKD,
- 100497: EURHUF,
- 100499: GBPHUF,
- 100501: USDHUF,
- 100503: EURMXN,
- 100505: GBPMXN,
- 100507: USDMXN,
- 100509: EURNOK,
- 100511: GBPNOK,
- 100513: USDNOK,
- 100515: EURNZD,
- 100517: GBPNZD,
- 100519: EURPLN,
- 100521: GBPPLN,
- 100523: USDPLN,
- 100525: EURSEK,
- 100527: GBPSEK,
- 100529: USDSEK,
- 100531: EURSGD,
- 100533: GBPSGD,
- 100535: USDSGD,
- 100537: EURTRY,
- 100539: GBPTRY,
- 100541: USDTRY,
- 100543: EURZAR,
- 100545: GBPZAR,
- 100547: USDZAR,
- 100613: NZDUSD,
- 100615: AUDNZD,
- 100617: NZDJPY,
- 100619: AUDCHF,
- 100667: AUDCAD,
- 100671: CADCHF,
- 100669: CADJPY,
- 100673: NZDCAD,
- 100675: NZDCHF,
- 100677: NZDSGD,
- 100678: SGDJPY,
- 100679: XAGEUR,
- 100680: XAUEUR,
- 100681: ZARJPY,
- 100089: UK100,
- 100091: WS30,
- 100093: SPX,
- 100095: NDX,
- 100097: GDAXI,
- 100099: FCHI,
- 100101: STOXX50E,
- 100103: AEX,
- 100637: XAUUSD,
- 100639: XAGUSD,
- 100699: CLQ2,
- 100705: CLU2,
- 100711: CLV2,
- 100697: LCOQ2,
- 100703: LCOU2,
- 100709: LCOV2,
- 100659: GCQ2,
- 100695: LGON2,
- 100701: LGOQ2,
- 100707: LGOU2,
- }
|