pmxtjs 1.5.6 → 1.5.7

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.
@@ -51,6 +51,12 @@ export interface CreateOrderParams {
51
51
  * @memberof CreateOrderParams
52
52
  */
53
53
  price?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CreateOrderParams
58
+ */
59
+ fee?: number;
54
60
  }
55
61
  /**
56
62
  * @export
@@ -55,6 +55,7 @@ export function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'type': json['type'],
56
56
  'amount': json['amount'],
57
57
  'price': json['price'] == null ? undefined : json['price'],
58
+ 'fee': json['fee'] == null ? undefined : json['fee'],
58
59
  };
59
60
  }
60
61
  export function CreateOrderParamsToJSON(json) {
@@ -71,5 +72,6 @@ export function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false)
71
72
  'type': value['type'],
72
73
  'amount': value['amount'],
73
74
  'price': value['price'],
75
+ 'fee': value['fee'],
74
76
  };
75
77
  }
@@ -594,6 +594,9 @@ export class Exchange {
594
594
  if (params.price !== undefined) {
595
595
  paramsDict.price = params.price;
596
596
  }
597
+ if (params.fee !== undefined) {
598
+ paramsDict.fee = params.fee;
599
+ }
597
600
  const requestBody = {
598
601
  args: [paramsDict],
599
602
  credentials: this.getCredentials()
@@ -234,6 +234,8 @@ export interface CreateOrderParams {
234
234
  amount: number;
235
235
  /** Limit price (required for limit orders, 0.0-1.0) */
236
236
  price?: number;
237
+ /** Optional fee rate (e.g., 1000 for 0.1%) */
238
+ fee?: number;
237
239
  }
238
240
  /**
239
241
  * A grouped collection of related markets (e.g., "Who will be Fed Chair?" contains multiple candidate markets)
@@ -51,6 +51,12 @@ export interface CreateOrderParams {
51
51
  * @memberof CreateOrderParams
52
52
  */
53
53
  price?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CreateOrderParams
58
+ */
59
+ fee?: number;
54
60
  }
55
61
  /**
56
62
  * @export
@@ -63,6 +63,7 @@ function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'type': json['type'],
64
64
  'amount': json['amount'],
65
65
  'price': json['price'] == null ? undefined : json['price'],
66
+ 'fee': json['fee'] == null ? undefined : json['fee'],
66
67
  };
67
68
  }
68
69
  function CreateOrderParamsToJSON(json) {
@@ -79,5 +80,6 @@ function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false) {
79
80
  'type': value['type'],
80
81
  'amount': value['amount'],
81
82
  'price': value['price'],
83
+ 'fee': value['fee'],
82
84
  };
83
85
  }
@@ -597,6 +597,9 @@ class Exchange {
597
597
  if (params.price !== undefined) {
598
598
  paramsDict.price = params.price;
599
599
  }
600
+ if (params.fee !== undefined) {
601
+ paramsDict.fee = params.fee;
602
+ }
600
603
  const requestBody = {
601
604
  args: [paramsDict],
602
605
  credentials: this.getCredentials()
@@ -234,6 +234,8 @@ export interface CreateOrderParams {
234
234
  amount: number;
235
235
  /** Limit price (required for limit orders, 0.0-1.0) */
236
236
  price?: number;
237
+ /** Optional fee rate (e.g., 1000 for 0.1%) */
238
+ fee?: number;
237
239
  }
238
240
  /**
239
241
  * A grouped collection of related markets (e.g., "Who will be Fed Chair?" contains multiple candidate markets)
@@ -12,6 +12,7 @@ Name | Type
12
12
  `type` | string
13
13
  `amount` | number
14
14
  `price` | number
15
+ `fee` | number
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "type": null,
27
28
  "amount": null,
28
29
  "price": null,
30
+ "fee": null,
29
31
  } satisfies CreateOrderParams
30
32
 
31
33
  console.log(example)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -55,6 +55,12 @@ export interface CreateOrderParams {
55
55
  * @memberof CreateOrderParams
56
56
  */
57
57
  price?: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof CreateOrderParams
62
+ */
63
+ fee?: number;
58
64
  }
59
65
 
60
66
 
@@ -105,6 +111,7 @@ export function CreateOrderParamsFromJSONTyped(json: any, ignoreDiscriminator: b
105
111
  'type': json['type'],
106
112
  'amount': json['amount'],
107
113
  'price': json['price'] == null ? undefined : json['price'],
114
+ 'fee': json['fee'] == null ? undefined : json['fee'],
108
115
  };
109
116
  }
110
117
 
@@ -125,6 +132,7 @@ export function CreateOrderParamsToJSONTyped(value?: CreateOrderParams | null, i
125
132
  'type': value['type'],
126
133
  'amount': value['amount'],
127
134
  'price': value['price'],
135
+ 'fee': value['fee'],
128
136
  };
129
137
  }
130
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Unified prediction market data API - The ccxt for prediction markets",
5
5
  "author": "PMXT Contributors",
6
6
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "unified"
43
43
  ],
44
44
  "dependencies": {
45
- "pmxt-core": "1.5.6"
45
+ "pmxt-core": "1.5.7"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/jest": "^30.0.0",
package/pmxt/client.ts CHANGED
@@ -719,6 +719,9 @@ export abstract class Exchange {
719
719
  if (params.price !== undefined) {
720
720
  paramsDict.price = params.price;
721
721
  }
722
+ if (params.fee !== undefined) {
723
+ paramsDict.fee = params.fee;
724
+ }
722
725
 
723
726
  const requestBody: CreateOrderRequest = {
724
727
  args: [paramsDict],
package/pmxt/models.ts CHANGED
@@ -315,6 +315,9 @@ export interface CreateOrderParams {
315
315
 
316
316
  /** Limit price (required for limit orders, 0.0-1.0) */
317
317
  price?: number;
318
+
319
+ /** Optional fee rate (e.g., 1000 for 0.1%) */
320
+ fee?: number;
318
321
  }
319
322
  /**
320
323
  * A grouped collection of related markets (e.g., "Who will be Fed Chair?" contains multiple candidate markets)