pmxt-core 2.42.2 → 2.42.3
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/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/server/openapi.yaml +513 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.710Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const kalshiApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.kalshiApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.710Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.kalshiApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.754Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const limitlessApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.limitlessApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.754Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.limitlessApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.766Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const myriadApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.myriadApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.766Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.myriadApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/opinion/opinion-openapi.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.769Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const opinionApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.opinionApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/opinion/opinion-openapi.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.769Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.opinionApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketClobAPI.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.717Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const polymarketClobSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.polymarketClobSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketClobAPI.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.717Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.polymarketClobSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/Polymarket_Data_API.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.733Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const polymarketDataSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.polymarketDataSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/Polymarket_Data_API.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.733Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.polymarketDataSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketGammaAPI.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.730Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const polymarketGammaSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.polymarketGammaSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketGammaAPI.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.730Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.polymarketGammaSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/probable/probable.yaml
|
|
3
|
-
* Generated at: 2026-05-
|
|
3
|
+
* Generated at: 2026-05-19T21:06:06.761Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const probableApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.probableApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/probable/probable.yaml
|
|
6
|
-
* Generated at: 2026-05-
|
|
6
|
+
* Generated at: 2026-05-19T21:06:06.761Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.probableApiSpec = {
|
package/dist/server/openapi.yaml
CHANGED
|
@@ -1980,6 +1980,402 @@ paths:
|
|
|
1980
1980
|
items:
|
|
1981
1981
|
$ref: '#/components/schemas/ArbitrageOpportunity'
|
|
1982
1982
|
deprecated: true
|
|
1983
|
+
/api/feeds:
|
|
1984
|
+
get:
|
|
1985
|
+
summary: List Available Feeds
|
|
1986
|
+
operationId: feedList
|
|
1987
|
+
description: Returns the list of available data feed providers.
|
|
1988
|
+
responses:
|
|
1989
|
+
'200':
|
|
1990
|
+
description: Successful response
|
|
1991
|
+
content:
|
|
1992
|
+
application/json:
|
|
1993
|
+
schema:
|
|
1994
|
+
type: object
|
|
1995
|
+
properties:
|
|
1996
|
+
success:
|
|
1997
|
+
type: boolean
|
|
1998
|
+
example: true
|
|
1999
|
+
data:
|
|
2000
|
+
type: array
|
|
2001
|
+
items:
|
|
2002
|
+
type: string
|
|
2003
|
+
tags:
|
|
2004
|
+
- Data Feeds
|
|
2005
|
+
'/api/feeds/{feed}/loadMarkets':
|
|
2006
|
+
get:
|
|
2007
|
+
summary: Load Feed Markets
|
|
2008
|
+
operationId: feedLoadMarkets
|
|
2009
|
+
description: Returns all trading pairs supported by this feed.
|
|
2010
|
+
parameters:
|
|
2011
|
+
- in: path
|
|
2012
|
+
name: feed
|
|
2013
|
+
schema:
|
|
2014
|
+
type: string
|
|
2015
|
+
enum:
|
|
2016
|
+
- binance
|
|
2017
|
+
- chainlink
|
|
2018
|
+
required: true
|
|
2019
|
+
description: The data feed provider.
|
|
2020
|
+
responses:
|
|
2021
|
+
'200':
|
|
2022
|
+
description: Successful response
|
|
2023
|
+
content:
|
|
2024
|
+
application/json:
|
|
2025
|
+
schema:
|
|
2026
|
+
type: object
|
|
2027
|
+
properties:
|
|
2028
|
+
success:
|
|
2029
|
+
type: boolean
|
|
2030
|
+
example: true
|
|
2031
|
+
data:
|
|
2032
|
+
type: object
|
|
2033
|
+
additionalProperties:
|
|
2034
|
+
$ref: '#/components/schemas/FeedMarket'
|
|
2035
|
+
tags:
|
|
2036
|
+
- Data Feeds
|
|
2037
|
+
'/api/feeds/{feed}/fetchTicker':
|
|
2038
|
+
get:
|
|
2039
|
+
summary: Fetch Ticker
|
|
2040
|
+
operationId: feedFetchTicker
|
|
2041
|
+
description: Returns the latest ticker for a single symbol.
|
|
2042
|
+
parameters:
|
|
2043
|
+
- in: path
|
|
2044
|
+
name: feed
|
|
2045
|
+
schema:
|
|
2046
|
+
type: string
|
|
2047
|
+
enum:
|
|
2048
|
+
- binance
|
|
2049
|
+
- chainlink
|
|
2050
|
+
required: true
|
|
2051
|
+
description: The data feed provider.
|
|
2052
|
+
- in: query
|
|
2053
|
+
name: symbol
|
|
2054
|
+
required: true
|
|
2055
|
+
schema:
|
|
2056
|
+
type: string
|
|
2057
|
+
description: 'Trading pair (e.g. BTC/USD, BTC/USDT)'
|
|
2058
|
+
responses:
|
|
2059
|
+
'200':
|
|
2060
|
+
description: Successful response
|
|
2061
|
+
content:
|
|
2062
|
+
application/json:
|
|
2063
|
+
schema:
|
|
2064
|
+
type: object
|
|
2065
|
+
properties:
|
|
2066
|
+
success:
|
|
2067
|
+
type: boolean
|
|
2068
|
+
example: true
|
|
2069
|
+
data:
|
|
2070
|
+
$ref: '#/components/schemas/FeedTicker'
|
|
2071
|
+
tags:
|
|
2072
|
+
- Data Feeds
|
|
2073
|
+
'/api/feeds/{feed}/fetchTickers':
|
|
2074
|
+
get:
|
|
2075
|
+
summary: Fetch Tickers
|
|
2076
|
+
operationId: feedFetchTickers
|
|
2077
|
+
description: 'Returns the latest tickers for all symbols, or a filtered subset.'
|
|
2078
|
+
parameters:
|
|
2079
|
+
- in: path
|
|
2080
|
+
name: feed
|
|
2081
|
+
schema:
|
|
2082
|
+
type: string
|
|
2083
|
+
enum:
|
|
2084
|
+
- binance
|
|
2085
|
+
- chainlink
|
|
2086
|
+
required: true
|
|
2087
|
+
description: The data feed provider.
|
|
2088
|
+
- in: query
|
|
2089
|
+
name: symbols
|
|
2090
|
+
required: false
|
|
2091
|
+
schema:
|
|
2092
|
+
type: string
|
|
2093
|
+
description: Comma-separated symbols to filter (optional)
|
|
2094
|
+
responses:
|
|
2095
|
+
'200':
|
|
2096
|
+
description: Successful response
|
|
2097
|
+
content:
|
|
2098
|
+
application/json:
|
|
2099
|
+
schema:
|
|
2100
|
+
type: object
|
|
2101
|
+
properties:
|
|
2102
|
+
success:
|
|
2103
|
+
type: boolean
|
|
2104
|
+
example: true
|
|
2105
|
+
data:
|
|
2106
|
+
type: object
|
|
2107
|
+
additionalProperties:
|
|
2108
|
+
$ref: '#/components/schemas/FeedTicker'
|
|
2109
|
+
tags:
|
|
2110
|
+
- Data Feeds
|
|
2111
|
+
'/api/feeds/{feed}/fetchOHLCV':
|
|
2112
|
+
get:
|
|
2113
|
+
summary: Fetch OHLCV
|
|
2114
|
+
operationId: feedFetchOHLCV
|
|
2115
|
+
description: Returns OHLCV candle data for a symbol.
|
|
2116
|
+
parameters:
|
|
2117
|
+
- in: path
|
|
2118
|
+
name: feed
|
|
2119
|
+
schema:
|
|
2120
|
+
type: string
|
|
2121
|
+
enum:
|
|
2122
|
+
- binance
|
|
2123
|
+
- chainlink
|
|
2124
|
+
required: true
|
|
2125
|
+
description: The data feed provider.
|
|
2126
|
+
- in: query
|
|
2127
|
+
name: symbol
|
|
2128
|
+
required: true
|
|
2129
|
+
schema:
|
|
2130
|
+
type: string
|
|
2131
|
+
description: Trading pair
|
|
2132
|
+
- in: query
|
|
2133
|
+
name: timeframe
|
|
2134
|
+
required: false
|
|
2135
|
+
schema:
|
|
2136
|
+
type: string
|
|
2137
|
+
default: 1h
|
|
2138
|
+
description: 'Candle interval (e.g. 1m, 5m, 1h, 1d)'
|
|
2139
|
+
- in: query
|
|
2140
|
+
name: since
|
|
2141
|
+
required: false
|
|
2142
|
+
schema:
|
|
2143
|
+
type: integer
|
|
2144
|
+
description: Start timestamp in ms
|
|
2145
|
+
- in: query
|
|
2146
|
+
name: limit
|
|
2147
|
+
required: false
|
|
2148
|
+
schema:
|
|
2149
|
+
type: integer
|
|
2150
|
+
description: Max candles to return
|
|
2151
|
+
responses:
|
|
2152
|
+
'200':
|
|
2153
|
+
description: Successful response
|
|
2154
|
+
content:
|
|
2155
|
+
application/json:
|
|
2156
|
+
schema:
|
|
2157
|
+
type: object
|
|
2158
|
+
properties:
|
|
2159
|
+
success:
|
|
2160
|
+
type: boolean
|
|
2161
|
+
example: true
|
|
2162
|
+
data:
|
|
2163
|
+
type: array
|
|
2164
|
+
items:
|
|
2165
|
+
type: array
|
|
2166
|
+
items:
|
|
2167
|
+
type: number
|
|
2168
|
+
minItems: 6
|
|
2169
|
+
maxItems: 6
|
|
2170
|
+
description: 'Array of [timestamp, open, high, low, close, volume] tuples'
|
|
2171
|
+
tags:
|
|
2172
|
+
- Data Feeds
|
|
2173
|
+
'/api/feeds/{feed}/fetchOrderBook':
|
|
2174
|
+
get:
|
|
2175
|
+
summary: Fetch Order Book
|
|
2176
|
+
operationId: feedFetchOrderBook
|
|
2177
|
+
description: Returns the current order book for a symbol (where supported).
|
|
2178
|
+
parameters:
|
|
2179
|
+
- in: path
|
|
2180
|
+
name: feed
|
|
2181
|
+
schema:
|
|
2182
|
+
type: string
|
|
2183
|
+
enum:
|
|
2184
|
+
- binance
|
|
2185
|
+
- chainlink
|
|
2186
|
+
required: true
|
|
2187
|
+
description: The data feed provider.
|
|
2188
|
+
- in: query
|
|
2189
|
+
name: symbol
|
|
2190
|
+
required: true
|
|
2191
|
+
schema:
|
|
2192
|
+
type: string
|
|
2193
|
+
description: Trading pair
|
|
2194
|
+
- in: query
|
|
2195
|
+
name: limit
|
|
2196
|
+
required: false
|
|
2197
|
+
schema:
|
|
2198
|
+
type: integer
|
|
2199
|
+
description: Depth limit
|
|
2200
|
+
responses:
|
|
2201
|
+
'200':
|
|
2202
|
+
description: Successful response
|
|
2203
|
+
content:
|
|
2204
|
+
application/json:
|
|
2205
|
+
schema:
|
|
2206
|
+
type: object
|
|
2207
|
+
properties:
|
|
2208
|
+
success:
|
|
2209
|
+
type: boolean
|
|
2210
|
+
example: true
|
|
2211
|
+
data:
|
|
2212
|
+
type: object
|
|
2213
|
+
properties:
|
|
2214
|
+
asks:
|
|
2215
|
+
type: array
|
|
2216
|
+
items:
|
|
2217
|
+
type: array
|
|
2218
|
+
items:
|
|
2219
|
+
type: number
|
|
2220
|
+
bids:
|
|
2221
|
+
type: array
|
|
2222
|
+
items:
|
|
2223
|
+
type: array
|
|
2224
|
+
items:
|
|
2225
|
+
type: number
|
|
2226
|
+
timestamp:
|
|
2227
|
+
type: integer
|
|
2228
|
+
datetime:
|
|
2229
|
+
type: string
|
|
2230
|
+
symbol:
|
|
2231
|
+
type: string
|
|
2232
|
+
tags:
|
|
2233
|
+
- Data Feeds
|
|
2234
|
+
'/api/feeds/{feed}/fetchOracleRound':
|
|
2235
|
+
get:
|
|
2236
|
+
summary: Fetch Oracle Round
|
|
2237
|
+
operationId: feedFetchOracleRound
|
|
2238
|
+
description: Returns the latest Chainlink oracle round for a price feed.
|
|
2239
|
+
parameters:
|
|
2240
|
+
- in: path
|
|
2241
|
+
name: feed
|
|
2242
|
+
schema:
|
|
2243
|
+
type: string
|
|
2244
|
+
enum:
|
|
2245
|
+
- binance
|
|
2246
|
+
- chainlink
|
|
2247
|
+
required: true
|
|
2248
|
+
description: The data feed provider.
|
|
2249
|
+
- in: query
|
|
2250
|
+
name: feed
|
|
2251
|
+
required: true
|
|
2252
|
+
schema:
|
|
2253
|
+
type: string
|
|
2254
|
+
description: Price feed pair (e.g. BTC/USD)
|
|
2255
|
+
responses:
|
|
2256
|
+
'200':
|
|
2257
|
+
description: Successful response
|
|
2258
|
+
content:
|
|
2259
|
+
application/json:
|
|
2260
|
+
schema:
|
|
2261
|
+
type: object
|
|
2262
|
+
properties:
|
|
2263
|
+
success:
|
|
2264
|
+
type: boolean
|
|
2265
|
+
example: true
|
|
2266
|
+
data:
|
|
2267
|
+
$ref: '#/components/schemas/FeedOracleRound'
|
|
2268
|
+
tags:
|
|
2269
|
+
- Data Feeds
|
|
2270
|
+
'/api/feeds/{feed}/fetchOracleHistory':
|
|
2271
|
+
get:
|
|
2272
|
+
summary: Fetch Oracle History
|
|
2273
|
+
operationId: feedFetchOracleHistory
|
|
2274
|
+
description: Returns historical Chainlink oracle rounds for a price feed.
|
|
2275
|
+
parameters:
|
|
2276
|
+
- in: path
|
|
2277
|
+
name: feed
|
|
2278
|
+
schema:
|
|
2279
|
+
type: string
|
|
2280
|
+
enum:
|
|
2281
|
+
- binance
|
|
2282
|
+
- chainlink
|
|
2283
|
+
required: true
|
|
2284
|
+
description: The data feed provider.
|
|
2285
|
+
- in: query
|
|
2286
|
+
name: feed
|
|
2287
|
+
required: true
|
|
2288
|
+
schema:
|
|
2289
|
+
type: string
|
|
2290
|
+
description: Price feed pair (e.g. BTC/USD)
|
|
2291
|
+
- in: query
|
|
2292
|
+
name: limit
|
|
2293
|
+
required: false
|
|
2294
|
+
schema:
|
|
2295
|
+
type: integer
|
|
2296
|
+
description: Max rounds to return (default 500)
|
|
2297
|
+
responses:
|
|
2298
|
+
'200':
|
|
2299
|
+
description: Successful response
|
|
2300
|
+
content:
|
|
2301
|
+
application/json:
|
|
2302
|
+
schema:
|
|
2303
|
+
type: object
|
|
2304
|
+
properties:
|
|
2305
|
+
success:
|
|
2306
|
+
type: boolean
|
|
2307
|
+
example: true
|
|
2308
|
+
data:
|
|
2309
|
+
type: array
|
|
2310
|
+
items:
|
|
2311
|
+
$ref: '#/components/schemas/FeedOracleRound'
|
|
2312
|
+
tags:
|
|
2313
|
+
- Data Feeds
|
|
2314
|
+
'/api/feeds/{feed}/fetchHistoricalPrices':
|
|
2315
|
+
get:
|
|
2316
|
+
summary: Fetch Historical Prices
|
|
2317
|
+
operationId: feedFetchHistoricalPrices
|
|
2318
|
+
description: Returns historical price data as tickers within a time range.
|
|
2319
|
+
parameters:
|
|
2320
|
+
- in: path
|
|
2321
|
+
name: feed
|
|
2322
|
+
schema:
|
|
2323
|
+
type: string
|
|
2324
|
+
enum:
|
|
2325
|
+
- binance
|
|
2326
|
+
- chainlink
|
|
2327
|
+
required: true
|
|
2328
|
+
description: The data feed provider.
|
|
2329
|
+
- in: query
|
|
2330
|
+
name: symbol
|
|
2331
|
+
required: true
|
|
2332
|
+
schema:
|
|
2333
|
+
type: string
|
|
2334
|
+
description: Trading pair (e.g. BTC/USD)
|
|
2335
|
+
- in: query
|
|
2336
|
+
name: fromTimestamp
|
|
2337
|
+
required: false
|
|
2338
|
+
schema:
|
|
2339
|
+
type: integer
|
|
2340
|
+
description: Start unix timestamp (seconds)
|
|
2341
|
+
- in: query
|
|
2342
|
+
name: untilTimestamp
|
|
2343
|
+
required: false
|
|
2344
|
+
schema:
|
|
2345
|
+
type: integer
|
|
2346
|
+
description: End unix timestamp (seconds)
|
|
2347
|
+
- in: query
|
|
2348
|
+
name: maxSize
|
|
2349
|
+
required: false
|
|
2350
|
+
schema:
|
|
2351
|
+
type: integer
|
|
2352
|
+
description: Max records to return
|
|
2353
|
+
- in: query
|
|
2354
|
+
name: order
|
|
2355
|
+
required: false
|
|
2356
|
+
schema:
|
|
2357
|
+
type: string
|
|
2358
|
+
enum:
|
|
2359
|
+
- asc
|
|
2360
|
+
- desc
|
|
2361
|
+
description: Sort order
|
|
2362
|
+
responses:
|
|
2363
|
+
'200':
|
|
2364
|
+
description: Successful response
|
|
2365
|
+
content:
|
|
2366
|
+
application/json:
|
|
2367
|
+
schema:
|
|
2368
|
+
type: object
|
|
2369
|
+
properties:
|
|
2370
|
+
success:
|
|
2371
|
+
type: boolean
|
|
2372
|
+
example: true
|
|
2373
|
+
data:
|
|
2374
|
+
type: array
|
|
2375
|
+
items:
|
|
2376
|
+
$ref: '#/components/schemas/FeedTicker'
|
|
2377
|
+
tags:
|
|
2378
|
+
- Data Feeds
|
|
1983
2379
|
components:
|
|
1984
2380
|
parameters:
|
|
1985
2381
|
ExchangeParam:
|
|
@@ -2002,6 +2398,16 @@ components:
|
|
|
2002
2398
|
- router
|
|
2003
2399
|
required: true
|
|
2004
2400
|
description: The prediction market exchange to target.
|
|
2401
|
+
FeedParam:
|
|
2402
|
+
in: path
|
|
2403
|
+
name: feed
|
|
2404
|
+
schema:
|
|
2405
|
+
type: string
|
|
2406
|
+
enum:
|
|
2407
|
+
- binance
|
|
2408
|
+
- chainlink
|
|
2409
|
+
required: true
|
|
2410
|
+
description: The data feed provider.
|
|
2005
2411
|
schemas:
|
|
2006
2412
|
BaseResponse:
|
|
2007
2413
|
type: object
|
|
@@ -3247,6 +3653,113 @@ components:
|
|
|
3247
3653
|
type: string
|
|
3248
3654
|
baseUrl:
|
|
3249
3655
|
type: string
|
|
3656
|
+
FeedTicker:
|
|
3657
|
+
type: object
|
|
3658
|
+
description: CCXT-compatible ticker with last trade price and metadata.
|
|
3659
|
+
properties:
|
|
3660
|
+
symbol:
|
|
3661
|
+
type: string
|
|
3662
|
+
description: Trading pair symbol (e.g. BTC/USD)
|
|
3663
|
+
info:
|
|
3664
|
+
description: Raw provider-specific data
|
|
3665
|
+
timestamp:
|
|
3666
|
+
type: integer
|
|
3667
|
+
description: Unix timestamp in milliseconds
|
|
3668
|
+
datetime:
|
|
3669
|
+
type: string
|
|
3670
|
+
format: date-time
|
|
3671
|
+
high:
|
|
3672
|
+
type: number
|
|
3673
|
+
low:
|
|
3674
|
+
type: number
|
|
3675
|
+
bid:
|
|
3676
|
+
type: number
|
|
3677
|
+
bidVolume:
|
|
3678
|
+
type: number
|
|
3679
|
+
ask:
|
|
3680
|
+
type: number
|
|
3681
|
+
askVolume:
|
|
3682
|
+
type: number
|
|
3683
|
+
vwap:
|
|
3684
|
+
type: number
|
|
3685
|
+
open:
|
|
3686
|
+
type: number
|
|
3687
|
+
close:
|
|
3688
|
+
type: number
|
|
3689
|
+
last:
|
|
3690
|
+
type: number
|
|
3691
|
+
description: Last trade price
|
|
3692
|
+
previousClose:
|
|
3693
|
+
type: number
|
|
3694
|
+
change:
|
|
3695
|
+
type: number
|
|
3696
|
+
percentage:
|
|
3697
|
+
type: number
|
|
3698
|
+
average:
|
|
3699
|
+
type: number
|
|
3700
|
+
quoteVolume:
|
|
3701
|
+
type: number
|
|
3702
|
+
baseVolume:
|
|
3703
|
+
type: number
|
|
3704
|
+
indexPrice:
|
|
3705
|
+
type: number
|
|
3706
|
+
markPrice:
|
|
3707
|
+
type: number
|
|
3708
|
+
required:
|
|
3709
|
+
- symbol
|
|
3710
|
+
FeedMarket:
|
|
3711
|
+
type: object
|
|
3712
|
+
description: CCXT-compatible market descriptor for a data feed.
|
|
3713
|
+
properties:
|
|
3714
|
+
id:
|
|
3715
|
+
type: string
|
|
3716
|
+
symbol:
|
|
3717
|
+
type: string
|
|
3718
|
+
base:
|
|
3719
|
+
type: string
|
|
3720
|
+
quote:
|
|
3721
|
+
type: string
|
|
3722
|
+
active:
|
|
3723
|
+
type: boolean
|
|
3724
|
+
type:
|
|
3725
|
+
type: string
|
|
3726
|
+
info:
|
|
3727
|
+
description: Provider-specific metadata
|
|
3728
|
+
required:
|
|
3729
|
+
- id
|
|
3730
|
+
- symbol
|
|
3731
|
+
- base
|
|
3732
|
+
- quote
|
|
3733
|
+
FeedOracleRound:
|
|
3734
|
+
type: object
|
|
3735
|
+
description: Chainlink oracle price round.
|
|
3736
|
+
properties:
|
|
3737
|
+
feed:
|
|
3738
|
+
type: string
|
|
3739
|
+
description: Price feed pair (e.g. BTC/USD)
|
|
3740
|
+
roundId:
|
|
3741
|
+
type: string
|
|
3742
|
+
answer:
|
|
3743
|
+
type: number
|
|
3744
|
+
description: Oracle price
|
|
3745
|
+
startedAt:
|
|
3746
|
+
type: integer
|
|
3747
|
+
updatedAt:
|
|
3748
|
+
type: integer
|
|
3749
|
+
answeredInRound:
|
|
3750
|
+
type: string
|
|
3751
|
+
decimals:
|
|
3752
|
+
type: integer
|
|
3753
|
+
description:
|
|
3754
|
+
type: string
|
|
3755
|
+
required:
|
|
3756
|
+
- feed
|
|
3757
|
+
- roundId
|
|
3758
|
+
- answer
|
|
3759
|
+
- startedAt
|
|
3760
|
+
- updatedAt
|
|
3761
|
+
- answeredInRound
|
|
3762
|
+
- decimals
|
|
3250
3763
|
x-sdk-constructors:
|
|
3251
3764
|
polymarket:
|
|
3252
3765
|
className: Polymarket
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxt-core",
|
|
3
|
-
"version": "2.42.
|
|
3
|
+
"version": "2.42.3",
|
|
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.42.
|
|
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.42.
|
|
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.42.3,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.42.3,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",
|