@riocrypto/common-server 1.0.789 → 1.0.790
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const calculateExchangeRateWithVolatilityMarkup: (conversionRateFromUSD: number, volatility: number,
|
|
1
|
+
export declare const calculateExchangeRateWithVolatilityMarkup: (conversionRateFromUSD: number, volatility: number, minutes: number, priceDirection: "increase" | "decrease" | "stable") => number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.calculateExchangeRateWithVolatilityMarkup = void 0;
|
|
4
|
-
const calculateExchangeRateWithVolatilityMarkup = (conversionRateFromUSD, volatility,
|
|
5
|
-
const maximumPriceChange = volatility *
|
|
4
|
+
const calculateExchangeRateWithVolatilityMarkup = (conversionRateFromUSD, volatility, minutes, priceDirection) => {
|
|
5
|
+
const maximumPriceChange = volatility * minutes;
|
|
6
6
|
let priceWithMarkup;
|
|
7
7
|
if (priceDirection === "increase") {
|
|
8
8
|
priceWithMarkup = conversionRateFromUSD + maximumPriceChange;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.790",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
25
25
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
26
26
|
"@google-cloud/storage": "^6.9.5",
|
|
27
|
-
"@riocrypto/common": "^1.0.
|
|
27
|
+
"@riocrypto/common": "^1.0.691",
|
|
28
28
|
"@types/express": "^4.17.13",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"ccxt": "^3.0.30",
|