pmxtjs 2.41.3 → 2.41.5

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.
Files changed (29) hide show
  1. package/dist/esm/generated/src/apis/DefaultApi.d.ts +1 -187
  2. package/dist/esm/generated/src/apis/DefaultApi.js +1 -271
  3. package/dist/esm/generated/src/models/index.d.ts +0 -2
  4. package/dist/esm/generated/src/models/index.js +0 -2
  5. package/dist/esm/pmxt/client.js +10 -3
  6. package/dist/generated/src/apis/DefaultApi.d.ts +1 -187
  7. package/dist/generated/src/apis/DefaultApi.js +1 -271
  8. package/dist/generated/src/models/index.d.ts +0 -2
  9. package/dist/generated/src/models/index.js +0 -2
  10. package/dist/pmxt/client.js +10 -3
  11. package/generated/.openapi-generator/FILES +0 -4
  12. package/generated/docs/DefaultApi.md +0 -408
  13. package/generated/package.json +1 -1
  14. package/generated/src/apis/DefaultApi.ts +0 -372
  15. package/generated/src/models/index.ts +0 -2
  16. package/package.json +3 -3
  17. package/pmxt/client.ts +5 -3
  18. package/dist/esm/generated/src/models/WatchAddress200Response.d.ts +0 -45
  19. package/dist/esm/generated/src/models/WatchAddress200Response.js +0 -46
  20. package/dist/esm/generated/src/models/WatchOrderBooks200Response.d.ts +0 -48
  21. package/dist/esm/generated/src/models/WatchOrderBooks200Response.js +0 -48
  22. package/dist/generated/src/models/WatchAddress200Response.d.ts +0 -45
  23. package/dist/generated/src/models/WatchAddress200Response.js +0 -53
  24. package/dist/generated/src/models/WatchOrderBooks200Response.d.ts +0 -48
  25. package/dist/generated/src/models/WatchOrderBooks200Response.js +0 -55
  26. package/generated/docs/WatchAddress200Response.md +0 -38
  27. package/generated/docs/WatchOrderBooks200Response.md +0 -38
  28. package/generated/src/models/WatchAddress200Response.ts +0 -89
  29. package/generated/src/models/WatchOrderBooks200Response.ts +0 -96
@@ -40,12 +40,6 @@ All URIs are relative to *http://localhost:3847*
40
40
  | [**loadMarkets**](DefaultApi.md#loadmarketsoperation) | **POST** /api/{exchange}/loadMarkets | Load Markets |
41
41
  | [**submitOrder**](DefaultApi.md#submitorderoperation) | **POST** /api/{exchange}/submitOrder | Submit Order |
42
42
  | [**testDummyMethod**](DefaultApi.md#testdummymethodoperation) | **POST** /api/{exchange}/testDummyMethod | Test Dummy Method |
43
- | [**unwatchAddress**](DefaultApi.md#unwatchaddress) | **POST** /api/{exchange}/unwatchAddress | Unwatch Address |
44
- | [**unwatchOrderBook**](DefaultApi.md#unwatchorderbook) | **POST** /api/{exchange}/unwatchOrderBook | Unwatch Order Book |
45
- | [**watchAddress**](DefaultApi.md#watchaddress) | **POST** /api/{exchange}/watchAddress | Watch Address |
46
- | [**watchOrderBook**](DefaultApi.md#watchorderbook) | **POST** /api/{exchange}/watchOrderBook | Watch Order Book |
47
- | [**watchOrderBooks**](DefaultApi.md#watchorderbooks) | **POST** /api/{exchange}/watchOrderBooks | Watch Order Books |
48
- | [**watchTrades**](DefaultApi.md#watchtrades) | **POST** /api/{exchange}/watchTrades | Watch Trades |
49
43
 
50
44
 
51
45
 
@@ -2890,405 +2884,3 @@ No authorization required
2890
2884
 
2891
2885
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2892
2886
 
2893
-
2894
- ## unwatchAddress
2895
-
2896
- > BaseResponse unwatchAddress(exchange)
2897
-
2898
- Unwatch Address
2899
-
2900
- Stop watching a previously registered wallet address and release its resource updates. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"unwatchAddress\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"unwatchAddress\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
2901
-
2902
- ### Example
2903
-
2904
- ```ts
2905
- import {
2906
- Configuration,
2907
- DefaultApi,
2908
- } from 'pmxtjs';
2909
- import type { UnwatchAddressRequest } from 'pmxtjs';
2910
-
2911
- async function example() {
2912
- console.log("🚀 Testing pmxtjs SDK...");
2913
- const api = new DefaultApi();
2914
-
2915
- const body = {
2916
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
2917
- exchange: exchange_example,
2918
- } satisfies UnwatchAddressRequest;
2919
-
2920
- try {
2921
- const data = await api.unwatchAddress(body);
2922
- console.log(data);
2923
- } catch (error) {
2924
- console.error(error);
2925
- }
2926
- }
2927
-
2928
- // Run the test
2929
- example().catch(console.error);
2930
- ```
2931
-
2932
- ### Parameters
2933
-
2934
-
2935
- | Name | Type | Description | Notes |
2936
- |------------- | ------------- | ------------- | -------------|
2937
- | **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
2938
-
2939
- ### Return type
2940
-
2941
- [**BaseResponse**](BaseResponse.md)
2942
-
2943
- ### Authorization
2944
-
2945
- No authorization required
2946
-
2947
- ### HTTP request headers
2948
-
2949
- - **Content-Type**: Not defined
2950
- - **Accept**: `application/json`
2951
-
2952
-
2953
- ### HTTP response details
2954
- | Status code | Description | Response headers |
2955
- |-------------|-------------|------------------|
2956
- | **200** | Unwatch Address response | - |
2957
-
2958
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2959
-
2960
-
2961
- ## unwatchOrderBook
2962
-
2963
- > BaseResponse unwatchOrderBook(exchange)
2964
-
2965
- Unwatch Order Book
2966
-
2967
- Unsubscribe from a previously watched order book stream. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"unwatchOrderBook\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"unwatchOrderBook\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
2968
-
2969
- ### Example
2970
-
2971
- ```ts
2972
- import {
2973
- Configuration,
2974
- DefaultApi,
2975
- } from 'pmxtjs';
2976
- import type { UnwatchOrderBookRequest } from 'pmxtjs';
2977
-
2978
- async function example() {
2979
- console.log("🚀 Testing pmxtjs SDK...");
2980
- const api = new DefaultApi();
2981
-
2982
- const body = {
2983
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
2984
- exchange: exchange_example,
2985
- } satisfies UnwatchOrderBookRequest;
2986
-
2987
- try {
2988
- const data = await api.unwatchOrderBook(body);
2989
- console.log(data);
2990
- } catch (error) {
2991
- console.error(error);
2992
- }
2993
- }
2994
-
2995
- // Run the test
2996
- example().catch(console.error);
2997
- ```
2998
-
2999
- ### Parameters
3000
-
3001
-
3002
- | Name | Type | Description | Notes |
3003
- |------------- | ------------- | ------------- | -------------|
3004
- | **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
3005
-
3006
- ### Return type
3007
-
3008
- [**BaseResponse**](BaseResponse.md)
3009
-
3010
- ### Authorization
3011
-
3012
- No authorization required
3013
-
3014
- ### HTTP request headers
3015
-
3016
- - **Content-Type**: Not defined
3017
- - **Accept**: `application/json`
3018
-
3019
-
3020
- ### HTTP response details
3021
- | Status code | Description | Response headers |
3022
- |-------------|-------------|------------------|
3023
- | **200** | Unwatch Order Book response | - |
3024
-
3025
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3026
-
3027
-
3028
- ## watchAddress
3029
-
3030
- > WatchAddress200Response watchAddress(exchange)
3031
-
3032
- Watch Address
3033
-
3034
- Stream activity for a public wallet address Returns a promise that resolves with the next activity snapshot whenever a change is detected. Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchAddress\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchAddress\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
3035
-
3036
- ### Example
3037
-
3038
- ```ts
3039
- import {
3040
- Configuration,
3041
- DefaultApi,
3042
- } from 'pmxtjs';
3043
- import type { WatchAddressRequest } from 'pmxtjs';
3044
-
3045
- async function example() {
3046
- console.log("🚀 Testing pmxtjs SDK...");
3047
- const api = new DefaultApi();
3048
-
3049
- const body = {
3050
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
3051
- exchange: exchange_example,
3052
- } satisfies WatchAddressRequest;
3053
-
3054
- try {
3055
- const data = await api.watchAddress(body);
3056
- console.log(data);
3057
- } catch (error) {
3058
- console.error(error);
3059
- }
3060
- }
3061
-
3062
- // Run the test
3063
- example().catch(console.error);
3064
- ```
3065
-
3066
- ### Parameters
3067
-
3068
-
3069
- | Name | Type | Description | Notes |
3070
- |------------- | ------------- | ------------- | -------------|
3071
- | **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
3072
-
3073
- ### Return type
3074
-
3075
- [**WatchAddress200Response**](WatchAddress200Response.md)
3076
-
3077
- ### Authorization
3078
-
3079
- No authorization required
3080
-
3081
- ### HTTP request headers
3082
-
3083
- - **Content-Type**: Not defined
3084
- - **Accept**: `application/json`
3085
-
3086
-
3087
- ### HTTP response details
3088
- | Status code | Description | Response headers |
3089
- |-------------|-------------|------------------|
3090
- | **200** | Watch Address response | - |
3091
-
3092
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3093
-
3094
-
3095
- ## watchOrderBook
3096
-
3097
- > FetchOrderBook200Response watchOrderBook(exchange)
3098
-
3099
- Watch Order Book
3100
-
3101
- Watch order book updates in real-time via WebSocket. Returns a promise that resolves with the next order book update. Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchOrderBook\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchOrderBook\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
3102
-
3103
- ### Example
3104
-
3105
- ```ts
3106
- import {
3107
- Configuration,
3108
- DefaultApi,
3109
- } from 'pmxtjs';
3110
- import type { WatchOrderBookRequest } from 'pmxtjs';
3111
-
3112
- async function example() {
3113
- console.log("🚀 Testing pmxtjs SDK...");
3114
- const api = new DefaultApi();
3115
-
3116
- const body = {
3117
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
3118
- exchange: exchange_example,
3119
- } satisfies WatchOrderBookRequest;
3120
-
3121
- try {
3122
- const data = await api.watchOrderBook(body);
3123
- console.log(data);
3124
- } catch (error) {
3125
- console.error(error);
3126
- }
3127
- }
3128
-
3129
- // Run the test
3130
- example().catch(console.error);
3131
- ```
3132
-
3133
- ### Parameters
3134
-
3135
-
3136
- | Name | Type | Description | Notes |
3137
- |------------- | ------------- | ------------- | -------------|
3138
- | **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
3139
-
3140
- ### Return type
3141
-
3142
- [**FetchOrderBook200Response**](FetchOrderBook200Response.md)
3143
-
3144
- ### Authorization
3145
-
3146
- No authorization required
3147
-
3148
- ### HTTP request headers
3149
-
3150
- - **Content-Type**: Not defined
3151
- - **Accept**: `application/json`
3152
-
3153
-
3154
- ### HTTP response details
3155
- | Status code | Description | Response headers |
3156
- |-------------|-------------|------------------|
3157
- | **200** | Watch Order Book response | - |
3158
-
3159
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3160
-
3161
-
3162
- ## watchOrderBooks
3163
-
3164
- > WatchOrderBooks200Response watchOrderBooks(exchange)
3165
-
3166
- Watch Order Books
3167
-
3168
- Watch multiple order books simultaneously via WebSocket. Returns a promise that resolves with a record of order book snapshots keyed by ID. Exchanges with native batch support (e.g. Kalshi) send a single subscribe message for all tickers; others fall back to individual watchOrderBook calls. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchOrderBooks\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchOrderBooks\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
3169
-
3170
- ### Example
3171
-
3172
- ```ts
3173
- import {
3174
- Configuration,
3175
- DefaultApi,
3176
- } from 'pmxtjs';
3177
- import type { WatchOrderBooksRequest } from 'pmxtjs';
3178
-
3179
- async function example() {
3180
- console.log("🚀 Testing pmxtjs SDK...");
3181
- const api = new DefaultApi();
3182
-
3183
- const body = {
3184
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
3185
- exchange: exchange_example,
3186
- } satisfies WatchOrderBooksRequest;
3187
-
3188
- try {
3189
- const data = await api.watchOrderBooks(body);
3190
- console.log(data);
3191
- } catch (error) {
3192
- console.error(error);
3193
- }
3194
- }
3195
-
3196
- // Run the test
3197
- example().catch(console.error);
3198
- ```
3199
-
3200
- ### Parameters
3201
-
3202
-
3203
- | Name | Type | Description | Notes |
3204
- |------------- | ------------- | ------------- | -------------|
3205
- | **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
3206
-
3207
- ### Return type
3208
-
3209
- [**WatchOrderBooks200Response**](WatchOrderBooks200Response.md)
3210
-
3211
- ### Authorization
3212
-
3213
- No authorization required
3214
-
3215
- ### HTTP request headers
3216
-
3217
- - **Content-Type**: Not defined
3218
- - **Accept**: `application/json`
3219
-
3220
-
3221
- ### HTTP response details
3222
- | Status code | Description | Response headers |
3223
- |-------------|-------------|------------------|
3224
- | **200** | Watch Order Books response | - |
3225
-
3226
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3227
-
3228
-
3229
- ## watchTrades
3230
-
3231
- > FetchTrades200Response watchTrades(exchange)
3232
-
3233
- Watch Trades
3234
-
3235
- Watch trade executions in real-time via WebSocket. Returns a promise that resolves with the next trade(s). Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchTrades\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchTrades\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
3236
-
3237
- ### Example
3238
-
3239
- ```ts
3240
- import {
3241
- Configuration,
3242
- DefaultApi,
3243
- } from 'pmxtjs';
3244
- import type { WatchTradesRequest } from 'pmxtjs';
3245
-
3246
- async function example() {
3247
- console.log("🚀 Testing pmxtjs SDK...");
3248
- const api = new DefaultApi();
3249
-
3250
- const body = {
3251
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
3252
- exchange: exchange_example,
3253
- } satisfies WatchTradesRequest;
3254
-
3255
- try {
3256
- const data = await api.watchTrades(body);
3257
- console.log(data);
3258
- } catch (error) {
3259
- console.error(error);
3260
- }
3261
- }
3262
-
3263
- // Run the test
3264
- example().catch(console.error);
3265
- ```
3266
-
3267
- ### Parameters
3268
-
3269
-
3270
- | Name | Type | Description | Notes |
3271
- |------------- | ------------- | ------------- | -------------|
3272
- | **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
3273
-
3274
- ### Return type
3275
-
3276
- [**FetchTrades200Response**](FetchTrades200Response.md)
3277
-
3278
- ### Authorization
3279
-
3280
- No authorization required
3281
-
3282
- ### HTTP request headers
3283
-
3284
- - **Content-Type**: Not defined
3285
- - **Accept**: `application/json`
3286
-
3287
-
3288
- ### HTTP response details
3289
- | Status code | Description | Response headers |
3290
- |-------------|-------------|------------------|
3291
- | **200** | Watch Trades response | - |
3292
-
3293
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3294
-
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.41.3",
3
+ "version": "2.41.5",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {