程序员的量化交易之路(22)--Cointrader值货币集合Currencies(10)
2023-09-14 08:56:49 时间
转载须注明出处:http://blog.csdn.net/minimicall?viewmode=contents,http://cloudtrade.top
货币集合Currencies是Currency的集合。主要是定义一些枚举:
代码如下:
public class Currencies { // Fiat public 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 quotes basis public 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 correct public 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); }
无事来学学--Kettle的转换概念和七大特点详细讲解 转换包括一个或多个步骤,步骤之间通过跳(hop)来连接。跳定义了一个单向通道,允许数据从一个步骤流向另一个步骤。在Kettle中,数据的单位是行,数据流就是数据行从一个步骤到另一个步骤的移动。
相关文章
- Dart入门—集合类型
- Atitit lucence 使用总结 目录 1. 基本概念1 1.1. Index:索引库,文档的集合组成索引。1 2. 建立索引2 2.1. Api查询2 2.2. Dsl查询3
- atitit.web 推送实现方案集合
- AI:2020年6月北京智源大会演讲视频回放集合——分享博主体会与总结
- DL之MobileNetV2:MobileNetV2算法的简介(论文介绍)、架构详解、案例应用等配图集合之详细攻略
- DL之NIN:Network in Network算法的简介(论文介绍)、架构详解、案例应用等配图集合之详细攻略
- Java学习路线-35:List集合
- Oracle集合操作函数:Union、Union All、Intersect、Minus
- 试题 算法训练 集合运算
- 【STL】set集合
- 第35讲:Python集合对象间的关系以及使用代码操作集合对象的数学操作
- Java开发之高并发编程篇(八)——安全访问的集合(1)