mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 09:56:53 +00:00
Use BigDecimal instead of Double for currency rate calculations (#134)
use BigDecimal instead of double for accuracy
This commit is contained in:
1 parent
489519a982
commit
feb59deb28
10 files changed
+251
-53
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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}}
|
||||
Reference in new issue
Block a user