pmxtjs 2.37.8 → 2.37.9
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/CreateOrderParams.d.ts +6 -0
- package/dist/esm/generated/src/models/CreateOrderParams.js +2 -0
- package/dist/esm/generated/src/models/ExchangeCredentials.d.ts +6 -0
- package/dist/esm/generated/src/models/ExchangeCredentials.js +2 -0
- package/dist/generated/src/models/CreateOrderParams.d.ts +6 -0
- package/dist/generated/src/models/CreateOrderParams.js +2 -0
- package/dist/generated/src/models/ExchangeCredentials.d.ts +6 -0
- package/dist/generated/src/models/ExchangeCredentials.js +2 -0
- package/generated/docs/CreateOrderParams.md +2 -0
- package/generated/docs/ExchangeCredentials.md +2 -0
- package/generated/package.json +1 -1
- package/generated/src/models/CreateOrderParams.ts +8 -0
- package/generated/src/models/ExchangeCredentials.ts +8 -0
- package/package.json +2 -2
|
@@ -69,6 +69,12 @@ export interface CreateOrderParams {
|
|
|
69
69
|
* @memberof CreateOrderParams
|
|
70
70
|
*/
|
|
71
71
|
negRisk?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Limitless delegated signing: profile ID to trade on behalf of
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof CreateOrderParams
|
|
76
|
+
*/
|
|
77
|
+
onBehalfOf?: number;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* @export
|
|
@@ -58,6 +58,7 @@ export function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
'fee': json['fee'] == null ? undefined : json['fee'],
|
|
59
59
|
'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
|
|
60
60
|
'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
|
|
61
|
+
'onBehalfOf': json['onBehalfOf'] == null ? undefined : json['onBehalfOf'],
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
export function CreateOrderParamsToJSON(json) {
|
|
@@ -77,5 +78,6 @@ export function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
77
78
|
'fee': value['fee'],
|
|
78
79
|
'tickSize': value['tickSize'],
|
|
79
80
|
'negRisk': value['negRisk'],
|
|
81
|
+
'onBehalfOf': value['onBehalfOf'],
|
|
80
82
|
};
|
|
81
83
|
}
|
|
@@ -58,6 +58,12 @@ export interface ExchangeCredentials {
|
|
|
58
58
|
* @memberof ExchangeCredentials
|
|
59
59
|
*/
|
|
60
60
|
funderAddress?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ExchangeCredentials
|
|
65
|
+
*/
|
|
66
|
+
walletAddress?: string;
|
|
61
67
|
}
|
|
62
68
|
/**
|
|
63
69
|
* Check if a given object implements the ExchangeCredentials interface.
|
|
@@ -33,6 +33,7 @@ export function ExchangeCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'privateKey': json['privateKey'] == null ? undefined : json['privateKey'],
|
|
34
34
|
'signatureType': json['signatureType'] == null ? undefined : ExchangeCredentialsSignatureTypeFromJSON(json['signatureType']),
|
|
35
35
|
'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
|
|
36
|
+
'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
export function ExchangeCredentialsToJSON(json) {
|
|
@@ -50,5 +51,6 @@ export function ExchangeCredentialsToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
50
51
|
'privateKey': value['privateKey'],
|
|
51
52
|
'signatureType': ExchangeCredentialsSignatureTypeToJSON(value['signatureType']),
|
|
52
53
|
'funderAddress': value['funderAddress'],
|
|
54
|
+
'walletAddress': value['walletAddress'],
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -69,6 +69,12 @@ export interface CreateOrderParams {
|
|
|
69
69
|
* @memberof CreateOrderParams
|
|
70
70
|
*/
|
|
71
71
|
negRisk?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Limitless delegated signing: profile ID to trade on behalf of
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof CreateOrderParams
|
|
76
|
+
*/
|
|
77
|
+
onBehalfOf?: number;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* @export
|
|
@@ -66,6 +66,7 @@ function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'fee': json['fee'] == null ? undefined : json['fee'],
|
|
67
67
|
'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
|
|
68
68
|
'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
|
|
69
|
+
'onBehalfOf': json['onBehalfOf'] == null ? undefined : json['onBehalfOf'],
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
72
|
function CreateOrderParamsToJSON(json) {
|
|
@@ -85,5 +86,6 @@ function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
86
|
'fee': value['fee'],
|
|
86
87
|
'tickSize': value['tickSize'],
|
|
87
88
|
'negRisk': value['negRisk'],
|
|
89
|
+
'onBehalfOf': value['onBehalfOf'],
|
|
88
90
|
};
|
|
89
91
|
}
|
|
@@ -58,6 +58,12 @@ export interface ExchangeCredentials {
|
|
|
58
58
|
* @memberof ExchangeCredentials
|
|
59
59
|
*/
|
|
60
60
|
funderAddress?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ExchangeCredentials
|
|
65
|
+
*/
|
|
66
|
+
walletAddress?: string;
|
|
61
67
|
}
|
|
62
68
|
/**
|
|
63
69
|
* Check if a given object implements the ExchangeCredentials interface.
|
|
@@ -40,6 +40,7 @@ function ExchangeCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'privateKey': json['privateKey'] == null ? undefined : json['privateKey'],
|
|
41
41
|
'signatureType': json['signatureType'] == null ? undefined : (0, ExchangeCredentialsSignatureType_1.ExchangeCredentialsSignatureTypeFromJSON)(json['signatureType']),
|
|
42
42
|
'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
|
|
43
|
+
'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
function ExchangeCredentialsToJSON(json) {
|
|
@@ -57,5 +58,6 @@ function ExchangeCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
58
|
'privateKey': value['privateKey'],
|
|
58
59
|
'signatureType': (0, ExchangeCredentialsSignatureType_1.ExchangeCredentialsSignatureTypeToJSON)(value['signatureType']),
|
|
59
60
|
'funderAddress': value['funderAddress'],
|
|
61
|
+
'walletAddress': value['walletAddress'],
|
|
60
62
|
};
|
|
61
63
|
}
|
|
@@ -15,6 +15,7 @@ Name | Type
|
|
|
15
15
|
`fee` | number
|
|
16
16
|
`tickSize` | number
|
|
17
17
|
`negRisk` | boolean
|
|
18
|
+
`onBehalfOf` | number
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"fee": null,
|
|
33
34
|
"tickSize": null,
|
|
34
35
|
"negRisk": null,
|
|
36
|
+
"onBehalfOf": null,
|
|
35
37
|
} satisfies CreateOrderParams
|
|
36
38
|
|
|
37
39
|
console.log(example)
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`privateKey` | string
|
|
15
15
|
`signatureType` | [ExchangeCredentialsSignatureType](ExchangeCredentialsSignatureType.md)
|
|
16
16
|
`funderAddress` | string
|
|
17
|
+
`walletAddress` | string
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -29,6 +30,7 @@ const example = {
|
|
|
29
30
|
"privateKey": null,
|
|
30
31
|
"signatureType": null,
|
|
31
32
|
"funderAddress": null,
|
|
33
|
+
"walletAddress": null,
|
|
32
34
|
} satisfies ExchangeCredentials
|
|
33
35
|
|
|
34
36
|
console.log(example)
|
package/generated/package.json
CHANGED
|
@@ -73,6 +73,12 @@ export interface CreateOrderParams {
|
|
|
73
73
|
* @memberof CreateOrderParams
|
|
74
74
|
*/
|
|
75
75
|
negRisk?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Limitless delegated signing: profile ID to trade on behalf of
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof CreateOrderParams
|
|
80
|
+
*/
|
|
81
|
+
onBehalfOf?: number;
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
|
|
@@ -126,6 +132,7 @@ export function CreateOrderParamsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
126
132
|
'fee': json['fee'] == null ? undefined : json['fee'],
|
|
127
133
|
'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
|
|
128
134
|
'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
|
|
135
|
+
'onBehalfOf': json['onBehalfOf'] == null ? undefined : json['onBehalfOf'],
|
|
129
136
|
};
|
|
130
137
|
}
|
|
131
138
|
|
|
@@ -149,6 +156,7 @@ export function CreateOrderParamsToJSONTyped(value?: CreateOrderParams | null, i
|
|
|
149
156
|
'fee': value['fee'],
|
|
150
157
|
'tickSize': value['tickSize'],
|
|
151
158
|
'negRisk': value['negRisk'],
|
|
159
|
+
'onBehalfOf': value['onBehalfOf'],
|
|
152
160
|
};
|
|
153
161
|
}
|
|
154
162
|
|
|
@@ -69,6 +69,12 @@ export interface ExchangeCredentials {
|
|
|
69
69
|
* @memberof ExchangeCredentials
|
|
70
70
|
*/
|
|
71
71
|
funderAddress?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ExchangeCredentials
|
|
76
|
+
*/
|
|
77
|
+
walletAddress?: string;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
/**
|
|
@@ -95,6 +101,7 @@ export function ExchangeCredentialsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
95
101
|
'privateKey': json['privateKey'] == null ? undefined : json['privateKey'],
|
|
96
102
|
'signatureType': json['signatureType'] == null ? undefined : ExchangeCredentialsSignatureTypeFromJSON(json['signatureType']),
|
|
97
103
|
'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
|
|
104
|
+
'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
107
|
|
|
@@ -116,6 +123,7 @@ export function ExchangeCredentialsToJSONTyped(value?: ExchangeCredentials | nul
|
|
|
116
123
|
'privateKey': value['privateKey'],
|
|
117
124
|
'signatureType': ExchangeCredentialsSignatureTypeToJSON(value['signatureType']),
|
|
118
125
|
'funderAddress': value['funderAddress'],
|
|
126
|
+
'walletAddress': value['walletAddress'],
|
|
119
127
|
};
|
|
120
128
|
}
|
|
121
129
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.9",
|
|
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.37.
|
|
46
|
+
"pmxt-core": "2.37.9"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^30.0.0",
|