@riocrypto/common 1.0.2472 → 1.0.2476
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.
- package/build/events/fill-created-event.d.ts +7 -0
- package/build/events/fill-created-event.js +2 -0
- package/build/events/subjects.d.ts +2 -2
- package/build/events/subjects.js +1 -1
- package/build/index.d.ts +4 -0
- package/build/index.js +4 -0
- package/build/types/dashboard-table-type.d.ts +1 -0
- package/build/types/dashboard-table-type.js +1 -0
- package/build/types/fill.d.ts +18 -0
- package/build/types/fill.js +2 -0
- package/build/types/position.d.ts +14 -0
- package/build/types/position.js +2 -0
- package/build/types/residual.d.ts +8 -0
- package/build/types/residual.js +2 -0
- package/package.json +1 -1
|
@@ -32,7 +32,6 @@ export declare enum Subjects {
|
|
|
32
32
|
BankAccountVerificationSent = "bankAccountVerification:sent",
|
|
33
33
|
BankAccountVerificationDispatched = "bankAccountVerification:dispatched",
|
|
34
34
|
BankAccountAccountHolderNameValidated = "bankAccount:accountHolderNameValidated",
|
|
35
|
-
BankAccountHasInvalidAccountHolderName = "bankAccount:hasInvalidAccountHolderName",
|
|
36
35
|
BankAccountCheckPassed = "bankAccountCheck:passed",
|
|
37
36
|
CircleAddressReady = "circleAddress:ready",
|
|
38
37
|
CircleAddressFailed = "circleAddress:failed",
|
|
@@ -222,5 +221,6 @@ export declare enum Subjects {
|
|
|
222
221
|
InboundFireblocksCryptoDepositReceived = "inboundFireblocksCryptoDeposit:received",
|
|
223
222
|
InboundBitsoCryptoDepositReceived = "inboundBitsoCryptoDeposit:received",
|
|
224
223
|
InboundBinanceCryptoDepositReceived = "inboundBinanceCryptoDeposit:received",
|
|
225
|
-
InternalTransferUpdated = "internalTransfer:updated"
|
|
224
|
+
InternalTransferUpdated = "internalTransfer:updated",
|
|
225
|
+
FillCreated = "fill:created"
|
|
226
226
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -36,7 +36,6 @@ var Subjects;
|
|
|
36
36
|
Subjects["BankAccountVerificationSent"] = "bankAccountVerification:sent";
|
|
37
37
|
Subjects["BankAccountVerificationDispatched"] = "bankAccountVerification:dispatched";
|
|
38
38
|
Subjects["BankAccountAccountHolderNameValidated"] = "bankAccount:accountHolderNameValidated";
|
|
39
|
-
Subjects["BankAccountHasInvalidAccountHolderName"] = "bankAccount:hasInvalidAccountHolderName";
|
|
40
39
|
Subjects["BankAccountCheckPassed"] = "bankAccountCheck:passed";
|
|
41
40
|
Subjects["CircleAddressReady"] = "circleAddress:ready";
|
|
42
41
|
Subjects["CircleAddressFailed"] = "circleAddress:failed";
|
|
@@ -227,4 +226,5 @@ var Subjects;
|
|
|
227
226
|
Subjects["InboundBitsoCryptoDepositReceived"] = "inboundBitsoCryptoDeposit:received";
|
|
228
227
|
Subjects["InboundBinanceCryptoDepositReceived"] = "inboundBinanceCryptoDeposit:received";
|
|
229
228
|
Subjects["InternalTransferUpdated"] = "internalTransfer:updated";
|
|
229
|
+
Subjects["FillCreated"] = "fill:created";
|
|
230
230
|
})(Subjects = exports.Subjects || (exports.Subjects = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -250,6 +250,7 @@ export * from "./events/emarkets-fx-trade-alternative-requested-event";
|
|
|
250
250
|
export * from "./events/transnetwork-fx-trade-alternative-requested-event";
|
|
251
251
|
export * from "./events/auth-kyc-needs-review-event";
|
|
252
252
|
export * from "./events/order-emergency-support-requested-event";
|
|
253
|
+
export * from "./events/fill-created-event";
|
|
253
254
|
export * from "./events/bank-account-needs-review-event";
|
|
254
255
|
export * from "./events/bank-account-verification-dispatched-event";
|
|
255
256
|
export * from "./types/auth-payload";
|
|
@@ -451,6 +452,9 @@ export * from "./types/fireblocks-transfer-status";
|
|
|
451
452
|
export * from "./types/mexico-invoicing-method";
|
|
452
453
|
export * from "./types/auth-kyc-status";
|
|
453
454
|
export * from "./types/order-log";
|
|
455
|
+
export * from "./types/fill";
|
|
456
|
+
export * from "./types/position";
|
|
457
|
+
export * from "./types/residual";
|
|
454
458
|
export * from "./types/liquidity-sourcing-plan";
|
|
455
459
|
export * from "./types/liquidity-sourcing-plan-status";
|
|
456
460
|
export * from "./types/liquidity-sourcing-step";
|
package/build/index.js
CHANGED
|
@@ -266,6 +266,7 @@ __exportStar(require("./events/emarkets-fx-trade-alternative-requested-event"),
|
|
|
266
266
|
__exportStar(require("./events/transnetwork-fx-trade-alternative-requested-event"), exports);
|
|
267
267
|
__exportStar(require("./events/auth-kyc-needs-review-event"), exports);
|
|
268
268
|
__exportStar(require("./events/order-emergency-support-requested-event"), exports);
|
|
269
|
+
__exportStar(require("./events/fill-created-event"), exports);
|
|
269
270
|
__exportStar(require("./events/bank-account-needs-review-event"), exports);
|
|
270
271
|
__exportStar(require("./events/bank-account-verification-dispatched-event"), exports);
|
|
271
272
|
__exportStar(require("./types/auth-payload"), exports);
|
|
@@ -467,6 +468,9 @@ __exportStar(require("./types/fireblocks-transfer-status"), exports);
|
|
|
467
468
|
__exportStar(require("./types/mexico-invoicing-method"), exports);
|
|
468
469
|
__exportStar(require("./types/auth-kyc-status"), exports);
|
|
469
470
|
__exportStar(require("./types/order-log"), exports);
|
|
471
|
+
__exportStar(require("./types/fill"), exports);
|
|
472
|
+
__exportStar(require("./types/position"), exports);
|
|
473
|
+
__exportStar(require("./types/residual"), exports);
|
|
470
474
|
__exportStar(require("./types/liquidity-sourcing-plan"), exports);
|
|
471
475
|
__exportStar(require("./types/liquidity-sourcing-plan-status"), exports);
|
|
472
476
|
__exportStar(require("./types/liquidity-sourcing-step"), exports);
|
|
@@ -29,6 +29,7 @@ export declare enum DashboardTableType {
|
|
|
29
29
|
Usage = "usage",
|
|
30
30
|
TemporaryVerifications = "temporaryVerifications",
|
|
31
31
|
AdminActions = "adminActions",
|
|
32
|
+
Fills = "fills",
|
|
32
33
|
LiquiditySourcingPlans = "liquiditySourcingPlans",
|
|
33
34
|
LiquiditySourcingExclusions = "liquiditySourcingExclusions"
|
|
34
35
|
}
|
|
@@ -33,6 +33,7 @@ var DashboardTableType;
|
|
|
33
33
|
DashboardTableType["Usage"] = "usage";
|
|
34
34
|
DashboardTableType["TemporaryVerifications"] = "temporaryVerifications";
|
|
35
35
|
DashboardTableType["AdminActions"] = "adminActions";
|
|
36
|
+
DashboardTableType["Fills"] = "fills";
|
|
36
37
|
DashboardTableType["LiquiditySourcingPlans"] = "liquiditySourcingPlans";
|
|
37
38
|
DashboardTableType["LiquiditySourcingExclusions"] = "liquiditySourcingExclusions";
|
|
38
39
|
})(DashboardTableType = exports.DashboardTableType || (exports.DashboardTableType = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Side } from "./side";
|
|
2
|
+
export interface Fill {
|
|
3
|
+
id: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
effectiveDate: Date;
|
|
6
|
+
orderId: string;
|
|
7
|
+
symbol: string;
|
|
8
|
+
status: string;
|
|
9
|
+
side: Side;
|
|
10
|
+
price: number;
|
|
11
|
+
qty: number;
|
|
12
|
+
source: string;
|
|
13
|
+
isFakeFill: boolean;
|
|
14
|
+
isDeleted: boolean;
|
|
15
|
+
note?: string;
|
|
16
|
+
referenceRate?: number;
|
|
17
|
+
valueDate?: Date;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Side } from "./side";
|
|
2
|
+
export interface Position {
|
|
3
|
+
symbol: string;
|
|
4
|
+
side: Side;
|
|
5
|
+
baseQty: number;
|
|
6
|
+
quoteQty: number;
|
|
7
|
+
averagePrice: number;
|
|
8
|
+
openPnL: number;
|
|
9
|
+
closedPnL: number;
|
|
10
|
+
lastPrice: number;
|
|
11
|
+
valueDate?: Date;
|
|
12
|
+
averageReferenceRate?: number;
|
|
13
|
+
instrumentType?: string;
|
|
14
|
+
}
|