pmxt-core 2.50.16 → 2.51.0
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/exchanges/hunch/api.d.ts +736 -0
- package/dist/exchanges/hunch/api.js +820 -0
- package/dist/exchanges/hunch/auth.d.ts +36 -0
- package/dist/exchanges/hunch/auth.js +63 -0
- package/dist/exchanges/hunch/errors.d.ts +26 -0
- package/dist/exchanges/hunch/errors.js +94 -0
- package/dist/exchanges/hunch/fetcher.d.ts +204 -0
- package/dist/exchanges/hunch/fetcher.js +130 -0
- package/dist/exchanges/hunch/index.d.ts +51 -0
- package/dist/exchanges/hunch/index.js +330 -0
- package/dist/exchanges/hunch/normalizer.d.ts +56 -0
- package/dist/exchanges/hunch/normalizer.js +180 -0
- package/dist/exchanges/hunch/price.d.ts +5 -0
- package/dist/exchanges/hunch/price.js +12 -0
- package/dist/exchanges/hunch/utils.d.ts +79 -0
- package/dist/exchanges/hunch/utils.js +182 -0
- package/dist/exchanges/hunch/websocket.d.ts +25 -0
- package/dist/exchanges/hunch/websocket.js +137 -0
- package/dist/exchanges/hyperliquid/auth.js +15 -2
- package/dist/exchanges/hyperliquid/fetcher.d.ts +26 -1
- package/dist/exchanges/hyperliquid/fetcher.js +66 -4
- package/dist/exchanges/hyperliquid/index.d.ts +4 -1
- package/dist/exchanges/hyperliquid/index.js +84 -20
- package/dist/exchanges/hyperliquid/normalizer.d.ts +4 -3
- package/dist/exchanges/hyperliquid/normalizer.js +69 -11
- package/dist/exchanges/hyperliquid/utils.d.ts +7 -1
- package/dist/exchanges/hyperliquid/utils.js +16 -4
- package/dist/exchanges/kalshi/api.d.ts +1 -1
- package/dist/exchanges/kalshi/api.js +1 -1
- package/dist/exchanges/limitless/api.d.ts +1 -1
- package/dist/exchanges/limitless/api.js +1 -1
- package/dist/exchanges/myriad/api.d.ts +1 -1
- package/dist/exchanges/myriad/api.js +1 -1
- package/dist/exchanges/opinion/api.d.ts +1 -1
- package/dist/exchanges/opinion/api.js +1 -1
- package/dist/exchanges/polymarket/api-clob.d.ts +1 -1
- package/dist/exchanges/polymarket/api-clob.js +1 -1
- package/dist/exchanges/polymarket/api-data.d.ts +1 -1
- package/dist/exchanges/polymarket/api-data.js +1 -1
- package/dist/exchanges/polymarket/api-gamma.d.ts +1 -1
- package/dist/exchanges/polymarket/api-gamma.js +1 -1
- package/dist/exchanges/probable/api.d.ts +1 -1
- package/dist/exchanges/probable/api.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/server/app.js +1 -0
- package/dist/server/exchange-factory.js +8 -0
- package/dist/server/openapi.yaml +17 -0
- package/dist/types.d.ts +4 -0
- package/package.json +3 -3
package/dist/server/openapi.yaml
CHANGED
|
@@ -3157,6 +3157,12 @@ components:
|
|
|
3157
3157
|
orderId:
|
|
3158
3158
|
type: string
|
|
3159
3159
|
description: 'The order that produced this trade, if known.'
|
|
3160
|
+
marketId:
|
|
3161
|
+
type: string
|
|
3162
|
+
description: 'The market this trade belongs to, when the venue exposes it (e.g. derivable from the fill''s coin/asset).'
|
|
3163
|
+
fee:
|
|
3164
|
+
type: number
|
|
3165
|
+
description: 'Trading fee paid by the user for this fill, when the venue exposes it.'
|
|
3160
3166
|
txHash:
|
|
3161
3167
|
type: string
|
|
3162
3168
|
nullable: true
|
|
@@ -4543,6 +4549,17 @@ x-sdk-constructors:
|
|
|
4543
4549
|
tsName: privateKey
|
|
4544
4550
|
type: string
|
|
4545
4551
|
description: Private key for authentication
|
|
4552
|
+
hunch:
|
|
4553
|
+
className: Hunch
|
|
4554
|
+
params:
|
|
4555
|
+
- name: pmxt_api_key
|
|
4556
|
+
tsName: pmxtApiKey
|
|
4557
|
+
type: string
|
|
4558
|
+
description: PMXT API key for hosted access
|
|
4559
|
+
- name: private_key
|
|
4560
|
+
tsName: privateKey
|
|
4561
|
+
type: string
|
|
4562
|
+
description: Private key for authentication
|
|
4546
4563
|
mock:
|
|
4547
4564
|
className: Mock
|
|
4548
4565
|
params:
|
package/dist/types.d.ts
CHANGED
|
@@ -183,6 +183,10 @@ export interface Trade {
|
|
|
183
183
|
export interface UserTrade extends Trade {
|
|
184
184
|
/** The order that produced this trade, if known. */
|
|
185
185
|
orderId?: string;
|
|
186
|
+
/** The market this trade belongs to, when the venue exposes it (e.g. derivable from the fill's coin/asset). */
|
|
187
|
+
marketId?: string;
|
|
188
|
+
/** Trading fee paid by the user for this fill, when the venue exposes it. */
|
|
189
|
+
fee?: number;
|
|
186
190
|
/** Populated in hosted mode after on-chain settlement; null for local-mode and for non-on-chain venues. */
|
|
187
191
|
txHash?: string | null;
|
|
188
192
|
/** Populated in hosted mode after on-chain settlement; null for local-mode and for non-on-chain venues. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxt-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.51.0",
|
|
4
4
|
"description": "pmxt is a unified prediction market data API. The ccxt for prediction markets.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test": "jest -c jest.config.js",
|
|
30
30
|
"server": "tsx watch src/server/index.ts",
|
|
31
31
|
"server:prod": "node dist/server/index.js",
|
|
32
|
-
"generate:sdk:python": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g python -o ../sdks/python/generated --package-name pmxt_internal --additional-properties=projectName=pmxt-internal,packageVersion=2.
|
|
33
|
-
"generate:sdk:typescript": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g typescript-fetch -o ../sdks/typescript/generated --additional-properties=npmName=pmxtjs,npmVersion=2.
|
|
32
|
+
"generate:sdk:python": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g python -o ../sdks/python/generated --package-name pmxt_internal --additional-properties=projectName=pmxt-internal,packageVersion=2.51.0,library=urllib3",
|
|
33
|
+
"generate:sdk:typescript": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g typescript-fetch -o ../sdks/typescript/generated --additional-properties=npmName=pmxtjs,npmVersion=2.51.0,supportsES6=true,typescriptThreePlus=true && node ../sdks/typescript/scripts/fix-generated.js",
|
|
34
34
|
"fetch:openapi": "node scripts/fetch-openapi-specs.js",
|
|
35
35
|
"extract:jsdoc": "node ../scripts/extract-jsdoc.js",
|
|
36
36
|
"generate:docs": "npm run extract:jsdoc && node ../scripts/generate-api-docs.js",
|