Use BigDecimal instead of Double for currency rate calculations (#134)

use BigDecimal instead of double for accuracy
This commit is contained in:
Sophiah Ho
2021-09-10 17:15:57 -04:00
committed by GitHub
parent 489519a982
commit feb59deb28
10 changed files with 251 additions and 53 deletions

View File

@@ -0,0 +1,15 @@
{
"success": true,
"timestamp": 1519296206,
"base": "EUR",
"date": "2021-08-01",
"rates": {
"AUD": 1.566015,
"CAD": 1.560132,
"CHF": 1.154727,
"CNY": 7.827874,
"GBP": 0.882047,
"JPY": 132.360679,
"USD": 1.23396
}
}

View File

@@ -0,0 +1 @@
{"success":true,"result":{"name":"CAD/USD","enabled":true,"postOnly":false,"priceIncrement":0.0001,"sizeIncrement":1.0,"minProvideSize":1.0,"last":0.8024,"bid":0.8014,"ask":0.8017,"price":0.8017,"type":"spot","baseCurrency":"CAD","quoteCurrency":"USD","underlying":null,"restricted":false,"highLeverageFeeExempt":true,"change1h":-0.000872382851445663,"change24h":-0.0007478499314470896,"changeBod":-0.0007478499314470896,"quoteVolume24h":116.3474,"volumeUsd24h":116.3474}}