@riocrypto/common-server 1.0.1746 → 1.0.1748
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,6 +1,7 @@
|
|
|
1
1
|
import { Fiat, Crypto } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface ArbitrageOpportunityAttrs {
|
|
4
|
+
createdAt: Date;
|
|
4
5
|
recipe: "BuyUSDTAtBitsoSellUSDAtBBVA";
|
|
5
6
|
minProfit: {
|
|
6
7
|
value: number;
|
|
@@ -22,6 +23,7 @@ interface ArbitrageOpportunityModel extends Model<ArbitrageOpportunityDoc> {
|
|
|
22
23
|
}
|
|
23
24
|
interface ArbitrageOpportunityDoc extends Document {
|
|
24
25
|
_id: string;
|
|
26
|
+
createdAt: Date;
|
|
25
27
|
recipe: "BuyUSDTAtBitsoSellUSDAtBBVA";
|
|
26
28
|
minProfit: {
|
|
27
29
|
value: number;
|
|
@@ -6,6 +6,10 @@ const buildArbitrageOpportunity = (mongoose) => {
|
|
|
6
6
|
return mongoose.model("ArbitrageOpportunity");
|
|
7
7
|
}
|
|
8
8
|
const ArbitrageOpportunitySchema = new mongoose.Schema({
|
|
9
|
+
createdAt: {
|
|
10
|
+
type: Date,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
9
13
|
recipe: {
|
|
10
14
|
type: String,
|
|
11
15
|
required: true,
|
package/build/models/order.d.ts
CHANGED
|
@@ -14,7 +14,9 @@ interface OrderAttrs {
|
|
|
14
14
|
country: Country;
|
|
15
15
|
state?: string;
|
|
16
16
|
amountFiat: number;
|
|
17
|
+
amountFiatReceived?: number;
|
|
17
18
|
amountCrypto: number;
|
|
19
|
+
amountCryptoReceived?: number;
|
|
18
20
|
substatus?: OrderSubstatus;
|
|
19
21
|
liquidityProvider: LiquidityProvider;
|
|
20
22
|
processor: Processor;
|
|
@@ -57,6 +59,8 @@ interface OrderDoc extends Document {
|
|
|
57
59
|
cryptoAddress?: string;
|
|
58
60
|
amountFiat: number;
|
|
59
61
|
amountCrypto: number;
|
|
62
|
+
amountFiatReceived?: number;
|
|
63
|
+
amountCryptoReceived?: number;
|
|
60
64
|
liquidityProvider: LiquidityProvider;
|
|
61
65
|
processor: Processor;
|
|
62
66
|
fees: Fees;
|
package/build/models/order.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1748",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
27
27
|
"@google-cloud/storage": "^6.9.5",
|
|
28
28
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1546",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|