@riocrypto/common 1.0.2164 → 1.0.2166
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.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderExecutionType = void 0;
|
|
4
|
+
var OrderExecutionType;
|
|
5
|
+
(function (OrderExecutionType) {
|
|
6
|
+
OrderExecutionType["RFQ"] = "RFQ";
|
|
7
|
+
OrderExecutionType["LimitPrice"] = "limitPrice";
|
|
8
|
+
})(OrderExecutionType = exports.OrderExecutionType || (exports.OrderExecutionType = {}));
|
|
@@ -2,6 +2,8 @@ export declare enum OrderStatus {
|
|
|
2
2
|
Created = "created",
|
|
3
3
|
Cancelled = "cancelled",
|
|
4
4
|
Processing = "processing",
|
|
5
|
+
AwaitingLimitPriceCondition = "awaitingLimitPriceCondition",
|
|
6
|
+
LimitPriceConditionMet = "limitPriceConditionMet",
|
|
5
7
|
SourcingLiquidity = "sourcingLiquidity",
|
|
6
8
|
CryptoAddressAdded = "cryptoAddressAdded",
|
|
7
9
|
LiquiditySourced = "liquiditySourced",
|
|
@@ -11,6 +11,8 @@ var OrderStatus;
|
|
|
11
11
|
// When the order is being processed by payment
|
|
12
12
|
// processor
|
|
13
13
|
OrderStatus["Processing"] = "processing";
|
|
14
|
+
OrderStatus["AwaitingLimitPriceCondition"] = "awaitingLimitPriceCondition";
|
|
15
|
+
OrderStatus["LimitPriceConditionMet"] = "limitPriceConditionMet";
|
|
14
16
|
OrderStatus["SourcingLiquidity"] = "sourcingLiquidity";
|
|
15
17
|
OrderStatus["CryptoAddressAdded"] = "cryptoAddressAdded";
|
|
16
18
|
OrderStatus["LiquiditySourced"] = "liquiditySourced";
|
package/build/types/order.d.ts
CHANGED
|
@@ -11,36 +11,38 @@ import { PayoutMethod } from "./payout-method";
|
|
|
11
11
|
import { OrderAttribute } from "./order-attribute";
|
|
12
12
|
import { DeferredPaymentType } from "./deferred-payment-type";
|
|
13
13
|
import { TwoWaySettlementType } from "./two-way-settlement-type";
|
|
14
|
+
import { OrderExecutionType } from "./order-execution-type";
|
|
14
15
|
export interface Order {
|
|
15
16
|
id: string;
|
|
16
|
-
quoteId
|
|
17
|
+
quoteId?: string;
|
|
17
18
|
createdAt: Date;
|
|
18
19
|
userId: string;
|
|
19
20
|
crypto: Crypto;
|
|
20
21
|
side: Side;
|
|
21
22
|
fiat: Fiat;
|
|
23
|
+
executionType: OrderExecutionType;
|
|
24
|
+
amountFiat: number;
|
|
25
|
+
amountCrypto: number;
|
|
22
26
|
paymentMethod?: PaymentMethod;
|
|
23
27
|
payoutMethod?: PayoutMethod;
|
|
24
28
|
status: OrderStatus;
|
|
25
29
|
cryptoAddress?: string;
|
|
26
30
|
country: Country;
|
|
27
|
-
|
|
28
|
-
amountFiat?: number;
|
|
31
|
+
limitPrice?: number;
|
|
29
32
|
amountFiatReceived?: number;
|
|
30
|
-
amountCrypto?: number;
|
|
31
33
|
amountCryptoReceived?: number;
|
|
32
|
-
liquidityProvider
|
|
33
|
-
processor
|
|
34
|
-
fees
|
|
35
|
-
actualFees
|
|
34
|
+
liquidityProvider?: LiquidityProvider;
|
|
35
|
+
processor?: Processor;
|
|
36
|
+
fees?: Fees;
|
|
37
|
+
actualFees?: Fees;
|
|
36
38
|
price: number;
|
|
37
39
|
depositAddress?: string;
|
|
38
40
|
depositTxId?: string;
|
|
39
41
|
withdrawalTxId?: string;
|
|
40
42
|
withdrawalTxIds?: string[];
|
|
41
43
|
brokerId?: string;
|
|
42
|
-
conversionRateUSD
|
|
43
|
-
conversionRateUSDWithMarkups
|
|
44
|
+
conversionRateUSD?: number;
|
|
45
|
+
conversionRateUSDWithMarkups?: number;
|
|
44
46
|
actualConversionRateUSD?: number;
|
|
45
47
|
notes?: string;
|
|
46
48
|
discount?: number;
|
|
@@ -54,7 +56,7 @@ export interface Order {
|
|
|
54
56
|
isAfterHours?: boolean;
|
|
55
57
|
isSurgePricing?: boolean;
|
|
56
58
|
chainedOrderId?: string;
|
|
57
|
-
netPrice
|
|
59
|
+
netPrice?: number;
|
|
58
60
|
requestedNetPrice?: number;
|
|
59
61
|
paymentAddressId?: string;
|
|
60
62
|
payoutAddressId?: string;
|
|
@@ -62,9 +64,9 @@ export interface Order {
|
|
|
62
64
|
attributes?: OrderAttribute[];
|
|
63
65
|
binancePaymentId?: string;
|
|
64
66
|
binancePayoutId?: string;
|
|
65
|
-
deferredPaymentType
|
|
66
|
-
twoWaySettlementType
|
|
67
|
-
twoWaySettlementDate
|
|
67
|
+
deferredPaymentType?: DeferredPaymentType;
|
|
68
|
+
twoWaySettlementType?: TwoWaySettlementType;
|
|
69
|
+
twoWaySettlementDate?: Date;
|
|
68
70
|
twoWaySettlementDateOffset?: number;
|
|
69
71
|
effectiveTwoWaySettlementDateOffset?: number;
|
|
70
72
|
bulkCryptoPaymentId?: string;
|
|
@@ -131,6 +133,6 @@ export interface Order {
|
|
|
131
133
|
};
|
|
132
134
|
payoutTransferLimit?: number;
|
|
133
135
|
paymentReceivedAt?: Date;
|
|
134
|
-
rioPayoutFireblocksVaultId
|
|
136
|
+
rioPayoutFireblocksVaultId?: string;
|
|
135
137
|
version: number;
|
|
136
138
|
}
|