mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 11:38:07 +01:00
Use BigDecimal instead of Double for currency rate calculations (#134)
use BigDecimal instead of double for accuracy
This commit is contained in:
15
service/src/test/resources/fixtures/fixer.res.json
Normal file
15
service/src/test/resources/fixtures/fixer.res.json
Normal 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
|
||||
}
|
||||
}
|
||||
1
service/src/test/resources/fixtures/ftx.res.json
Normal file
1
service/src/test/resources/fixtures/ftx.res.json
Normal 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}}
|
||||
Reference in New Issue
Block a user