pmxtjs 2.40.3 → 2.40.4
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/dist/esm/generated/src/models/Order.d.ts +13 -1
- package/dist/esm/generated/src/models/Order.js +4 -0
- package/dist/generated/src/models/Order.d.ts +13 -1
- package/dist/generated/src/models/Order.js +4 -0
- package/generated/docs/Order.md +4 -0
- package/generated/package.json +1 -1
- package/generated/src/models/Order.ts +17 -1
- package/package.json +2 -2
|
@@ -64,11 +64,17 @@ export interface Order {
|
|
|
64
64
|
*/
|
|
65
65
|
status: OrderStatusEnum;
|
|
66
66
|
/**
|
|
67
|
-
* Amount filled
|
|
67
|
+
* Amount filled (USDC cost for buys, shares for sells)
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof Order
|
|
70
70
|
*/
|
|
71
71
|
filled: number;
|
|
72
|
+
/**
|
|
73
|
+
* Amount filled in shares/contracts (if different from USDC-denominated `filled`).
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof Order
|
|
76
|
+
*/
|
|
77
|
+
filledShares?: number;
|
|
72
78
|
/**
|
|
73
79
|
* Amount remaining
|
|
74
80
|
* @type {number}
|
|
@@ -87,6 +93,12 @@ export interface Order {
|
|
|
87
93
|
* @memberof Order
|
|
88
94
|
*/
|
|
89
95
|
fee?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Fee rate in basis points applied to this order (e.g. 100 = 1%).
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof Order
|
|
100
|
+
*/
|
|
101
|
+
feeRateBps?: number;
|
|
90
102
|
}
|
|
91
103
|
/**
|
|
92
104
|
* @export
|
|
@@ -78,9 +78,11 @@ export function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
78
|
'amount': json['amount'],
|
|
79
79
|
'status': json['status'],
|
|
80
80
|
'filled': json['filled'],
|
|
81
|
+
'filledShares': json['filledShares'] == null ? undefined : json['filledShares'],
|
|
81
82
|
'remaining': json['remaining'],
|
|
82
83
|
'timestamp': json['timestamp'],
|
|
83
84
|
'fee': json['fee'] == null ? undefined : json['fee'],
|
|
85
|
+
'feeRateBps': json['feeRateBps'] == null ? undefined : json['feeRateBps'],
|
|
84
86
|
};
|
|
85
87
|
}
|
|
86
88
|
export function OrderToJSON(json) {
|
|
@@ -100,8 +102,10 @@ export function OrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
100
102
|
'amount': value['amount'],
|
|
101
103
|
'status': value['status'],
|
|
102
104
|
'filled': value['filled'],
|
|
105
|
+
'filledShares': value['filledShares'],
|
|
103
106
|
'remaining': value['remaining'],
|
|
104
107
|
'timestamp': value['timestamp'],
|
|
105
108
|
'fee': value['fee'],
|
|
109
|
+
'feeRateBps': value['feeRateBps'],
|
|
106
110
|
};
|
|
107
111
|
}
|
|
@@ -64,11 +64,17 @@ export interface Order {
|
|
|
64
64
|
*/
|
|
65
65
|
status: OrderStatusEnum;
|
|
66
66
|
/**
|
|
67
|
-
* Amount filled
|
|
67
|
+
* Amount filled (USDC cost for buys, shares for sells)
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof Order
|
|
70
70
|
*/
|
|
71
71
|
filled: number;
|
|
72
|
+
/**
|
|
73
|
+
* Amount filled in shares/contracts (if different from USDC-denominated `filled`).
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof Order
|
|
76
|
+
*/
|
|
77
|
+
filledShares?: number;
|
|
72
78
|
/**
|
|
73
79
|
* Amount remaining
|
|
74
80
|
* @type {number}
|
|
@@ -87,6 +93,12 @@ export interface Order {
|
|
|
87
93
|
* @memberof Order
|
|
88
94
|
*/
|
|
89
95
|
fee?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Fee rate in basis points applied to this order (e.g. 100 = 1%).
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof Order
|
|
100
|
+
*/
|
|
101
|
+
feeRateBps?: number;
|
|
90
102
|
}
|
|
91
103
|
/**
|
|
92
104
|
* @export
|
|
@@ -86,9 +86,11 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
86
|
'amount': json['amount'],
|
|
87
87
|
'status': json['status'],
|
|
88
88
|
'filled': json['filled'],
|
|
89
|
+
'filledShares': json['filledShares'] == null ? undefined : json['filledShares'],
|
|
89
90
|
'remaining': json['remaining'],
|
|
90
91
|
'timestamp': json['timestamp'],
|
|
91
92
|
'fee': json['fee'] == null ? undefined : json['fee'],
|
|
93
|
+
'feeRateBps': json['feeRateBps'] == null ? undefined : json['feeRateBps'],
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
96
|
function OrderToJSON(json) {
|
|
@@ -108,8 +110,10 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
108
110
|
'amount': value['amount'],
|
|
109
111
|
'status': value['status'],
|
|
110
112
|
'filled': value['filled'],
|
|
113
|
+
'filledShares': value['filledShares'],
|
|
111
114
|
'remaining': value['remaining'],
|
|
112
115
|
'timestamp': value['timestamp'],
|
|
113
116
|
'fee': value['fee'],
|
|
117
|
+
'feeRateBps': value['feeRateBps'],
|
|
114
118
|
};
|
|
115
119
|
}
|
package/generated/docs/Order.md
CHANGED
|
@@ -15,9 +15,11 @@ Name | Type
|
|
|
15
15
|
`amount` | number
|
|
16
16
|
`status` | string
|
|
17
17
|
`filled` | number
|
|
18
|
+
`filledShares` | number
|
|
18
19
|
`remaining` | number
|
|
19
20
|
`timestamp` | number
|
|
20
21
|
`fee` | number
|
|
22
|
+
`feeRateBps` | number
|
|
21
23
|
|
|
22
24
|
## Example
|
|
23
25
|
|
|
@@ -35,9 +37,11 @@ const example = {
|
|
|
35
37
|
"amount": null,
|
|
36
38
|
"status": null,
|
|
37
39
|
"filled": null,
|
|
40
|
+
"filledShares": null,
|
|
38
41
|
"remaining": null,
|
|
39
42
|
"timestamp": null,
|
|
40
43
|
"fee": null,
|
|
44
|
+
"feeRateBps": null,
|
|
41
45
|
} satisfies Order
|
|
42
46
|
|
|
43
47
|
console.log(example)
|
package/generated/package.json
CHANGED
|
@@ -68,11 +68,17 @@ export interface Order {
|
|
|
68
68
|
*/
|
|
69
69
|
status: OrderStatusEnum;
|
|
70
70
|
/**
|
|
71
|
-
* Amount filled
|
|
71
|
+
* Amount filled (USDC cost for buys, shares for sells)
|
|
72
72
|
* @type {number}
|
|
73
73
|
* @memberof Order
|
|
74
74
|
*/
|
|
75
75
|
filled: number;
|
|
76
|
+
/**
|
|
77
|
+
* Amount filled in shares/contracts (if different from USDC-denominated `filled`).
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof Order
|
|
80
|
+
*/
|
|
81
|
+
filledShares?: number;
|
|
76
82
|
/**
|
|
77
83
|
* Amount remaining
|
|
78
84
|
* @type {number}
|
|
@@ -91,6 +97,12 @@ export interface Order {
|
|
|
91
97
|
* @memberof Order
|
|
92
98
|
*/
|
|
93
99
|
fee?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Fee rate in basis points applied to this order (e.g. 100 = 1%).
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof Order
|
|
104
|
+
*/
|
|
105
|
+
feeRateBps?: number;
|
|
94
106
|
}
|
|
95
107
|
|
|
96
108
|
|
|
@@ -161,9 +173,11 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|
|
161
173
|
'amount': json['amount'],
|
|
162
174
|
'status': json['status'],
|
|
163
175
|
'filled': json['filled'],
|
|
176
|
+
'filledShares': json['filledShares'] == null ? undefined : json['filledShares'],
|
|
164
177
|
'remaining': json['remaining'],
|
|
165
178
|
'timestamp': json['timestamp'],
|
|
166
179
|
'fee': json['fee'] == null ? undefined : json['fee'],
|
|
180
|
+
'feeRateBps': json['feeRateBps'] == null ? undefined : json['feeRateBps'],
|
|
167
181
|
};
|
|
168
182
|
}
|
|
169
183
|
|
|
@@ -187,9 +201,11 @@ export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: bool
|
|
|
187
201
|
'amount': value['amount'],
|
|
188
202
|
'status': value['status'],
|
|
189
203
|
'filled': value['filled'],
|
|
204
|
+
'filledShares': value['filledShares'],
|
|
190
205
|
'remaining': value['remaining'],
|
|
191
206
|
'timestamp': value['timestamp'],
|
|
192
207
|
'fee': value['fee'],
|
|
208
|
+
'feeRateBps': value['feeRateBps'],
|
|
193
209
|
};
|
|
194
210
|
}
|
|
195
211
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.40.
|
|
3
|
+
"version": "2.40.4",
|
|
4
4
|
"description": "Unified prediction market data API - The ccxt for prediction markets",
|
|
5
5
|
"author": "PMXT Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"unified"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"pmxt-core": "2.40.
|
|
46
|
+
"pmxt-core": "2.40.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^30.0.0",
|