@riocrypto/common 1.0.1714 → 1.0.1715
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/types/internal-trade-status.d.ts +4 -2
- package/build/types/internal-trade-status.js +3 -1
- package/build/types/internal-trade-strategy.d.ts +3 -0
- package/build/types/internal-trade-strategy.js +7 -0
- package/build/types/internal-trade-type.d.ts +4 -0
- package/build/types/internal-trade-type.js +8 -0
- package/build/types/internal-trade.d.ts +8 -1
- package/package.json +1 -1
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InternalTradeStatus = void 0;
|
|
4
4
|
var InternalTradeStatus;
|
|
5
5
|
(function (InternalTradeStatus) {
|
|
6
|
-
InternalTradeStatus["
|
|
6
|
+
InternalTradeStatus["Created"] = "created";
|
|
7
7
|
InternalTradeStatus["Complete"] = "complete";
|
|
8
8
|
InternalTradeStatus["Failed"] = "failed";
|
|
9
|
+
InternalTradeStatus["Filling"] = "filling";
|
|
10
|
+
InternalTradeStatus["Cancelled"] = "cancelled";
|
|
9
11
|
})(InternalTradeStatus = exports.InternalTradeStatus || (exports.InternalTradeStatus = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalTradeStrategy = void 0;
|
|
4
|
+
var InternalTradeStrategy;
|
|
5
|
+
(function (InternalTradeStrategy) {
|
|
6
|
+
InternalTradeStrategy["TopOfBook"] = "topOfBook";
|
|
7
|
+
})(InternalTradeStrategy = exports.InternalTradeStrategy || (exports.InternalTradeStrategy = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalTradeType = void 0;
|
|
4
|
+
var InternalTradeType;
|
|
5
|
+
(function (InternalTradeType) {
|
|
6
|
+
InternalTradeType["Market"] = "market";
|
|
7
|
+
InternalTradeType["Limit"] = "limit";
|
|
8
|
+
})(InternalTradeType = exports.InternalTradeType || (exports.InternalTradeType = {}));
|
|
@@ -2,6 +2,8 @@ import { TreasuryProvider } from "./treasury-provider";
|
|
|
2
2
|
import { Fiat } from "./fiat";
|
|
3
3
|
import { Crypto } from "./crypto";
|
|
4
4
|
import { InternalTradeStatus } from "./internal-trade-status";
|
|
5
|
+
import { InternalTradeStrategy } from "./internal-trade-strategy";
|
|
6
|
+
import { InternalTradeType } from "./internal-trade-type";
|
|
5
7
|
export interface InternalTrade {
|
|
6
8
|
id: string;
|
|
7
9
|
adminId: string;
|
|
@@ -11,6 +13,11 @@ export interface InternalTrade {
|
|
|
11
13
|
originCurrency: Fiat | Crypto;
|
|
12
14
|
destinationAmount: number;
|
|
13
15
|
destinationCurrency: Fiat | Crypto;
|
|
14
|
-
price: number;
|
|
15
16
|
status: InternalTradeStatus;
|
|
17
|
+
type: InternalTradeType;
|
|
18
|
+
coinbaseOrderId?: string;
|
|
19
|
+
amountFilled?: number;
|
|
20
|
+
limitPrice?: number;
|
|
21
|
+
strategy?: InternalTradeStrategy;
|
|
22
|
+
price?: number;
|
|
16
23
|
}
|