转载须注明出处:http://blog.csdn.net/minimicall?viewmode=contents,http://cloudtrade.top

货币集合Currencies是Currency的集合。主要是定义一些枚举:

代码如下:

public class Currencies {// Fiatpublic static final Currency AUD = fiat("AUD", 0.01);public static final Currency CAD = fiat("CAD", 0.01);public static final Currency CHF = fiat("CHF", 0.05);public static final Currency CNY = fiat("CNY", 0.01);public static final Currency EUR = fiat("EUR", 0.01);public static final Currency GBP = fiat("GBP", 0.01);public static final Currency HKD = fiat("HKD", 0.01);public static final Currency JPY = fiat("JPY", 1.00);public static final Currency MXN = fiat("MXN", 0.01);public static final Currency NZD = fiat("NZD", 0.10);public static final Currency RUB = fiat("RUB", 0.01);public static final Currency SEK = fiat("SEK", 1.00);public static final Currency SGD = fiat("SGD", 0.01);public static final Currency TRY = fiat("TRY", 0.01);public static final Currency USD = fiat("USD", 0.01);// Cryptos// Base coins Bitcoin, Litecoin, Primecoin, Dogecoin, Nextcoin// todo review bases!  they may not be correct// todo we need a way for a Market to trade in a different basis than the quote's basispublic static final Currency AUR = crypto("AUR", 1e-8);public static final Currency BTC = crypto("BTC", 1e-8);public static final Currency DOGE = crypto("DOGE", 1e-8);public static final Currency DRK = crypto("DRK", 1e-7);public static final Currency FTC = crypto("FTC", 1e-8);public static final Currency LTC = crypto("LTC", 1e-8);public static final Currency MEM = crypto("MEM", 1e-8);public static final Currency MOON = crypto("MOON", 1e-8);public static final Currency NMC = crypto("NMC", 1e-8);public static final Currency NVC = crypto("NVC", 1e-8);public static final Currency NXT = crypto("NXT", 1e-8);public static final Currency XCP = crypto("XCP", 1e-8);public static final Currency XPM = crypto("XPM", 1e-8);// Altcoins// todo review bases!  they may not be correctpublic static final Currency BC = crypto("BC", 1e-8);public static final Currency BQC = crypto("BQC", 1e-8);public static final Currency BTB = crypto("BTB", 1e-8);public static final Currency BTQ = crypto("BTQ", 1e-8);public static final Currency BUK = crypto("BUK", 1e-8);public static final Currency C2 = crypto("C2", 1e-8);public static final Currency CDC = crypto("CDC", 1e-8);public static final Currency CENT = crypto("CENT", 1e-8);public static final Currency CMC = crypto("CMC", 1e-8);public static final Currency CNC = crypto("CNC", 1e-8);public static final Currency COMM = crypto("COMM", 1e-8);public static final Currency DGC = crypto("DGC", 1e-8);public static final Currency DTC = crypto("DTC", 1e-8);public static final Currency DVC = crypto("DVC", 1e-8);public static final Currency EXC = crypto("EXC", 1e-8);public static final Currency FLT = crypto("FLT", 1e-8);public static final Currency FRC = crypto("FRC", 1e-8);public static final Currency IFC = crypto("IFC", 1e-8);public static final Currency KDC = crypto("KDC", 1e-8);public static final Currency MAX = crypto("MAX", 1e-8);public static final Currency MEC = crypto("MEC", 1e-8);public static final Currency MINT = crypto("MINT", 1e-8);public static final Currency MMC = crypto("MMC", 1e-8);public static final Currency NEC = crypto("NEC", 1e-8);public static final Currency NET = crypto("NET", 1e-8);public static final Currency PPC = crypto("PPC", 1e-8);public static final Currency PRT = crypto("PRT", 1e-8);public static final Currency PTS = crypto("PTS", 1e-8);public static final Currency QRK = crypto("QRK", 1e-8);public static final Currency quute = crypto("quute", 1e-8);public static final Currency RDD = crypto("RDD", 1e-8);public static final Currency CANN = crypto("CANN", 1e-8);public static final Currency RED = crypto("RED", 1e-8);public static final Currency SLM = crypto("SLM", 1e-8);public static final Currency SRC = crypto("SRC", 1e-8);public static final Currency TAG = crypto("TAG", 1e-8);public static final Currency TIPS = crypto("TIPS", 1e-8);public static final Currency TIX = crypto("TIX", 1e-8);public static final Currency VRC = crypto("VRC", 1e-8);public static final Currency VTC = crypto("VTC", 1e-8);public static final Currency WDC = crypto("WDC", 1e-8);public static final Currency XC = crypto("XC", 1e-8);public static final Currency YAC = crypto("YAC", 1e-8);public static final Currency ZCC = crypto("ZCC", 1e-8);public static final Currency ZET = crypto("ZET", 1e-8);private static Currency fiat(String symbol, double basis) {return Currency.forSymbolOrCreate(symbol, true, basis);}private static Currency crypto(String symbol, double basis) {return Currency.forSymbolOrCreate(symbol, false, basis);}
}

程序员的量化交易之路(22)--Cointrader值货币集合Currencies(10)相关推荐

  1. 程序员的量化交易之路(1)----规划开篇

    其实,一直对量化交易有一定的理解和情节.早在中大读研究生的时候实验室师兄,已经去了中国平安核心投资团队,做高频交易研究的国源师兄的影响,就开始对金融世界产生了浓厚的兴趣.看了丁磊编著的<量化投资 ...

  2. 程序员的量化交易之路(35)--Lean之DataFeed数据槽3

    转载需注明出处:http://blog.csdn.net/minimicall,http://cloudtrade.top/ Lean引擎的模块划分非常的规范.其中DataFeed是数据槽,就是供应数 ...

  3. 程序员的量化交易之路(25)--Cointrader之MarketData市场数据实体(12)

    转载需注明出处:http://blog.csdn.net/minimicall,http://cloudtrade.top/ 前面一节我们说到了远端事件.其中,市场数据就属于远端事件.市场数据有什么? ...

  4. 程序员的量化交易之路(17)--Cointrader之Temporal实体(5)

    转载需要注明:http://blog.csdn.net/minimicall,http://cloudtrader.top/ 这一小节说明一个时间实体Temporal实体,它的代码很简单. packa ...

  5. 程序员的量化交易之路(26)--Cointrader之Listing挂牌实体(13)

    转载须注明出处:http://blog.csdn.net/minimicall?viewmode=contents,http://cloudtrade.top Listing:挂牌.比如某只股票在某证 ...

  6. 程序员转行量化交易可行吗?

    程序员转量化交易,其实是一件挺顺理成章的事,有一位网友他想向我佐证一下,职业量化交易这一条路,他可以做下去吗,以及其它一些细枝末节的问题. 他以前是某日系合资企业的程序工程师,程序背景是C++与pyt ...

  7. 热议:程序员转行量化交易可行吗?

    程序员转量化交易,其实是一件挺顺理成章的事,就在上周,有一位网友来我的店里拜访我,其实他来的目的也特别简单,他想向我佐证一下,职业量化交易这一条路,他可以做下去吗,以及其它一些细枝末节的问题. 他以前 ...

  8. 程序员的量化交易(34)--QuantConnect_Lean如何定义Indicator指标2

    转载需注明出处:http://blog.csdn.net/minimicall,http://cloudtrade.top/ 指标(Indicator)由三大关键组件组成: 1. 实现你指标的类 2. ...

  9. 剖析Android移动开发程序员的职业发展之路

    剖析Android移动开发程序员的职业发展之路 做Android移动开发已经有三年时间,其中甘苦自知,对Android开发和对Android程序员的职业发展有一些自己的感悟,在这里愿与大家分享和讨论. ...

  10. 程序员的财务自由之路(二)- 给自己树立一个目标

    文章目录 一.前言 二.如何制定目标 1.目标蓝图 2.技术栈 3.反向激励 三.C++ 入门 1.C++ 是世界上最好的语言 2.编码能力 3.算法 4.小试牛刀 1)标准输入输出 2)ASCII ...

最新文章

  1. 数据包发包工具bittwist
  2. 在python多进程中使用manager和Barrier
  3. 案例 | 铅酸蓄电池精细维护
  4. Gossip协议详解
  5. (40)System Verilog随机函数$random示例
  6. c语言倒序输出单词_洛谷 || 单词覆盖还原(C语言)
  7. python怎么读写文件-怎么用python读取和写入TIFF文件1
  8. win10 休眠设置无效_睡眠模式在Windows 10系统上不起作用?
  9. PHP 公众号文章 转 pdf,使用Python爬取微信公众号文章并保存为PDF文件(解决图片不显示的问题)...
  10. GBK、UTF-8、ASCLL、url编码
  11. PMP课程笔记:第8章 项目质量管理
  12. 前端请求报错Provisional headers are shown接口请求失败
  13. ROS学习记录16【SLAM】仿真学习5——将cmd_vel转换为ackman小车的速度
  14. 【洛谷4920】[WC2015] 未来程序(提答题)
  15. C++ strcpy、strcat、strcmp和strlen的实现
  16. 【新塘N76E003】NU-LINK脱机烧写
  17. 解析光纤跳线的5大知识点,让安装使用更顺畅
  18. SQL中Round函数没有四舍五入原因及处理方法
  19. VScode使用指南之如何全屏和退出全屏(1)
  20. ppt模板有哪些网站

热门文章

  1. 成都拉升12名,长沙提升3位,最新全球城市排名出炉
  2. 用talib实现基于emv的简易量化投资策略
  3. 使用python脚本和crontab在阿里云实现优矿自动签到
  4. vue项目页面的打印和下载PDF加loading效果(加水印)
  5. 智力题:13 个球一个天平,现知道只有一个和其它的重量不同,问怎样称才能用三次就找到那个球?
  6. PDF文件怎么加密?这两种加密方法很靠谱
  7. 系统思考:VUCA时代下的我们应该怎么做?
  8. Etcher 改变一个选项,让所有盘符都乖乖出来
  9. 从360首席科学家到区块链创业者,苦钻代码、强迫自己看白皮书,原来这个圈子都是这么努力的 | 人物志...
  10. 201919102004张雪婷(第二次作业)