pmxtjs 2.51.2 → 2.51.4
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/README.md +15 -6
- package/dist/esm/generated/src/apis/DefaultApi.d.ts +6 -0
- package/dist/esm/generated/src/apis/DefaultApi.js +6 -0
- package/dist/esm/generated/src/models/CreateOrderParams.d.ts +20 -0
- package/dist/esm/generated/src/models/CreateOrderParams.js +11 -0
- package/dist/esm/pmxt/client.d.ts +40 -9
- package/dist/esm/pmxt/client.js +78 -3
- package/dist/esm/pmxt/hosted-typed-data.d.ts +1 -1
- package/dist/esm/pmxt/hosted-typed-data.js +14 -0
- package/dist/esm/pmxt/models.d.ts +17 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +6 -0
- package/dist/generated/src/apis/DefaultApi.js +6 -0
- package/dist/generated/src/models/CreateOrderParams.d.ts +20 -0
- package/dist/generated/src/models/CreateOrderParams.js +12 -1
- package/dist/pmxt/client.d.ts +40 -9
- package/dist/pmxt/client.js +78 -3
- package/dist/pmxt/hosted-typed-data.d.ts +1 -1
- package/dist/pmxt/hosted-typed-data.js +14 -0
- package/dist/pmxt/models.d.ts +17 -0
- package/generated/docs/ArbitrageOpportunity.md +0 -29
- package/generated/docs/Balance.md +0 -25
- package/generated/docs/BaseRequest.md +0 -21
- package/generated/docs/BaseResponse.md +0 -22
- package/generated/docs/BuildOrder200Response.md +0 -23
- package/generated/docs/BuildOrderRequest.md +0 -22
- package/generated/docs/BuiltOrder.md +0 -26
- package/generated/docs/BuiltOrderTx.md +0 -24
- package/generated/docs/CancelOrderRequest.md +0 -22
- package/generated/docs/CloseRequest.md +0 -22
- package/generated/docs/CompareMarketPrices200Response.md +0 -23
- package/generated/docs/CompareMarketPricesRequest.md +0 -22
- package/generated/docs/CreateOrder200Response.md +0 -23
- package/generated/docs/CreateOrderParams.md +2 -30
- package/generated/docs/CreateOrderRequest.md +0 -22
- package/generated/docs/DataFeedsApi.md +0 -329
- package/generated/docs/DefaultApi.md +3 -1438
- package/generated/docs/ErrorDetail.md +0 -25
- package/generated/docs/ErrorResponse.md +0 -22
- package/generated/docs/EventFetchParams.md +0 -35
- package/generated/docs/EventFilterCriteria.md +0 -26
- package/generated/docs/EventFilterCriteriaTotalVolume.md +0 -22
- package/generated/docs/EventMatchResult.md +0 -22
- package/generated/docs/ExchangeCredentials.md +0 -29
- package/generated/docs/ExchangeCredentialsSignatureType.md +0 -20
- package/generated/docs/ExchangeOptions.md +0 -27
- package/generated/docs/ExecutionPriceResult.md +0 -23
- package/generated/docs/FeedFetchHistoricalPrices200Response.md +0 -22
- package/generated/docs/FeedFetchOHLCV200Response.md +0 -22
- package/generated/docs/FeedFetchOracleHistory200Response.md +0 -22
- package/generated/docs/FeedFetchOracleRound200Response.md +0 -22
- package/generated/docs/FeedFetchOrderBook200Response.md +0 -22
- package/generated/docs/FeedFetchOrderBook200ResponseData.md +0 -25
- package/generated/docs/FeedFetchTicker200Response.md +0 -22
- package/generated/docs/FeedFetchTickers200Response.md +0 -22
- package/generated/docs/FeedList200Response.md +0 -22
- package/generated/docs/FeedLoadMarkets200Response.md +0 -22
- package/generated/docs/FeedMarket.md +0 -27
- package/generated/docs/FeedOracleRound.md +0 -28
- package/generated/docs/FeedTicker.md +0 -42
- package/generated/docs/FetchArbitrage200Response.md +0 -23
- package/generated/docs/FetchArbitrageParams.md +0 -24
- package/generated/docs/FetchBalance200Response.md +0 -23
- package/generated/docs/FetchEvent200Response.md +0 -23
- package/generated/docs/FetchEventMatches200Response.md +0 -23
- package/generated/docs/FetchEventMatchesParams.md +0 -29
- package/generated/docs/FetchEvents200Response.md +0 -23
- package/generated/docs/FetchEventsPaginated200Response.md +0 -23
- package/generated/docs/FetchMarket200Response.md +0 -23
- package/generated/docs/FetchMarketMatches200Response.md +0 -23
- package/generated/docs/FetchMarketMatchesParams.md +0 -32
- package/generated/docs/FetchMarkets200Response.md +0 -23
- package/generated/docs/FetchMarketsPaginated200Response.md +0 -23
- package/generated/docs/FetchMatchedMarkets200Response.md +0 -23
- package/generated/docs/FetchMatchedMarketsParams.md +0 -24
- package/generated/docs/FetchMyTrades200Response.md +0 -23
- package/generated/docs/FetchOHLCV200Response.md +0 -23
- package/generated/docs/FetchOpenOrders200Response.md +0 -23
- package/generated/docs/FetchOrderBook200Response.md +0 -23
- package/generated/docs/FetchOrderBookParams.md +0 -24
- package/generated/docs/FetchOrderBooks200Response.md +0 -23
- package/generated/docs/FetchOrderBooksRequest.md +0 -22
- package/generated/docs/FetchPositions200Response.md +0 -23
- package/generated/docs/FetchSeries200Response.md +0 -23
- package/generated/docs/FetchTrades200Response.md +0 -23
- package/generated/docs/FilterEventsRequest.md +0 -22
- package/generated/docs/FilterEventsRequestArgsInner.md +0 -26
- package/generated/docs/FilterMarketsRequest.md +0 -22
- package/generated/docs/FilterMarketsRequestArgsInner.md +0 -31
- package/generated/docs/GetExecutionPrice200Response.md +0 -23
- package/generated/docs/GetExecutionPriceDetailed200Response.md +0 -23
- package/generated/docs/GetExecutionPriceDetailedRequest.md +0 -22
- package/generated/docs/GetExecutionPriceRequest.md +0 -22
- package/generated/docs/GetExecutionPriceRequestArgsInner.md +0 -27
- package/generated/docs/HealthCheck200Response.md +0 -22
- package/generated/docs/HistoryFilterParams.md +0 -24
- package/generated/docs/LoadMarkets200Response.md +0 -23
- package/generated/docs/LoadMarketsRequest.md +0 -22
- package/generated/docs/MarketFilterCriteria.md +0 -31
- package/generated/docs/MarketFilterCriteriaLiquidity.md +0 -22
- package/generated/docs/MarketFilterCriteriaOpenInterest.md +0 -22
- package/generated/docs/MarketFilterCriteriaPrice.md +0 -23
- package/generated/docs/MarketFilterCriteriaResolutionDate.md +0 -22
- package/generated/docs/MarketFilterCriteriaVolume.md +0 -22
- package/generated/docs/MarketFilterCriteriaVolume24h.md +0 -22
- package/generated/docs/MarketFilterParams.md +0 -34
- package/generated/docs/MarketOutcome.md +0 -26
- package/generated/docs/MatchResult.md +0 -27
- package/generated/docs/MatchedMarketPair.md +0 -30
- package/generated/docs/MyTradesParams.md +0 -26
- package/generated/docs/OHLCVParams.md +0 -24
- package/generated/docs/Order.md +0 -37
- package/generated/docs/OrderBook.md +0 -27
- package/generated/docs/OrderHistoryParams.md +0 -25
- package/generated/docs/OrderLevel.md +0 -23
- package/generated/docs/PaginatedEventsResult.md +0 -23
- package/generated/docs/PaginatedMarketsResult.md +0 -23
- package/generated/docs/Position.md +0 -32
- package/generated/docs/PriceCandle.md +0 -26
- package/generated/docs/PriceComparison.md +0 -27
- package/generated/docs/SubmitOrderRequest.md +0 -22
- package/generated/docs/Trade.md +0 -26
- package/generated/docs/TradesParams.md +0 -23
- package/generated/docs/UnifiedEvent.md +0 -33
- package/generated/docs/UnifiedMarket.md +0 -44
- package/generated/docs/UnifiedSeries.md +0 -31
- package/generated/docs/UserTrade.md +0 -32
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +6 -0
- package/generated/src/models/CreateOrderParams.ts +25 -0
- package/package.json +2 -2
- package/pmxt/client.ts +92 -11
- package/pmxt/hosted-typed-data.ts +17 -1
- package/pmxt/models.ts +20 -0
|
@@ -16,34 +16,6 @@ Name | Type
|
|
|
16
16
|
`decimals` | number
|
|
17
17
|
`description` | string
|
|
18
18
|
|
|
19
|
-
## Example
|
|
20
|
-
|
|
21
|
-
```typescript
|
|
22
|
-
import type { FeedOracleRound } from 'pmxtjs'
|
|
23
|
-
|
|
24
|
-
// TODO: Update the object below with actual values
|
|
25
|
-
const example = {
|
|
26
|
-
"feed": null,
|
|
27
|
-
"roundId": null,
|
|
28
|
-
"answer": null,
|
|
29
|
-
"startedAt": null,
|
|
30
|
-
"updatedAt": null,
|
|
31
|
-
"answeredInRound": null,
|
|
32
|
-
"decimals": null,
|
|
33
|
-
"description": null,
|
|
34
|
-
} satisfies FeedOracleRound
|
|
35
|
-
|
|
36
|
-
console.log(example)
|
|
37
|
-
|
|
38
|
-
// Convert the instance to a JSON string
|
|
39
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
-
console.log(exampleJSON)
|
|
41
|
-
|
|
42
|
-
// Parse the JSON string back to an object
|
|
43
|
-
const exampleParsed = JSON.parse(exampleJSON) as FeedOracleRound
|
|
44
|
-
console.log(exampleParsed)
|
|
45
|
-
```
|
|
46
|
-
|
|
47
19
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
20
|
|
|
49
21
|
|
|
@@ -30,48 +30,6 @@ Name | Type
|
|
|
30
30
|
`indexPrice` | number
|
|
31
31
|
`markPrice` | number
|
|
32
32
|
|
|
33
|
-
## Example
|
|
34
|
-
|
|
35
|
-
```typescript
|
|
36
|
-
import type { FeedTicker } from 'pmxtjs'
|
|
37
|
-
|
|
38
|
-
// TODO: Update the object below with actual values
|
|
39
|
-
const example = {
|
|
40
|
-
"symbol": null,
|
|
41
|
-
"info": null,
|
|
42
|
-
"timestamp": null,
|
|
43
|
-
"datetime": null,
|
|
44
|
-
"high": null,
|
|
45
|
-
"low": null,
|
|
46
|
-
"bid": null,
|
|
47
|
-
"bidVolume": null,
|
|
48
|
-
"ask": null,
|
|
49
|
-
"askVolume": null,
|
|
50
|
-
"vwap": null,
|
|
51
|
-
"open": null,
|
|
52
|
-
"close": null,
|
|
53
|
-
"last": null,
|
|
54
|
-
"previousClose": null,
|
|
55
|
-
"change": null,
|
|
56
|
-
"percentage": null,
|
|
57
|
-
"average": null,
|
|
58
|
-
"quoteVolume": null,
|
|
59
|
-
"baseVolume": null,
|
|
60
|
-
"indexPrice": null,
|
|
61
|
-
"markPrice": null,
|
|
62
|
-
} satisfies FeedTicker
|
|
63
|
-
|
|
64
|
-
console.log(example)
|
|
65
|
-
|
|
66
|
-
// Convert the instance to a JSON string
|
|
67
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
68
|
-
console.log(exampleJSON)
|
|
69
|
-
|
|
70
|
-
// Parse the JSON string back to an object
|
|
71
|
-
const exampleParsed = JSON.parse(exampleJSON) as FeedTicker
|
|
72
|
-
console.log(exampleParsed)
|
|
73
|
-
```
|
|
74
|
-
|
|
75
33
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
34
|
|
|
77
35
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<ArbitrageOpportunity>](ArbitrageOpportunity.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchArbitrage200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchArbitrage200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchArbitrage200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -11,30 +11,6 @@ Name | Type
|
|
|
11
11
|
`limit` | number
|
|
12
12
|
`relations` | Array<string>
|
|
13
13
|
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { FetchArbitrageParams } from 'pmxtjs'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"minSpread": null,
|
|
22
|
-
"category": null,
|
|
23
|
-
"limit": null,
|
|
24
|
-
"relations": null,
|
|
25
|
-
} satisfies FetchArbitrageParams
|
|
26
|
-
|
|
27
|
-
console.log(example)
|
|
28
|
-
|
|
29
|
-
// Convert the instance to a JSON string
|
|
30
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
-
console.log(exampleJSON)
|
|
32
|
-
|
|
33
|
-
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchArbitrageParams
|
|
35
|
-
console.log(exampleParsed)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
14
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
15
|
|
|
40
16
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<Balance>](Balance.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchBalance200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchBalance200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchBalance200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [UnifiedEvent](UnifiedEvent.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchEvent200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchEvent200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchEvent200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<EventMatchResult>](EventMatchResult.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchEventMatches200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchEventMatches200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchEventMatches200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -16,35 +16,6 @@ Name | Type
|
|
|
16
16
|
`limit` | number
|
|
17
17
|
`includePrices` | boolean
|
|
18
18
|
|
|
19
|
-
## Example
|
|
20
|
-
|
|
21
|
-
```typescript
|
|
22
|
-
import type { FetchEventMatchesParams } from 'pmxtjs'
|
|
23
|
-
|
|
24
|
-
// TODO: Update the object below with actual values
|
|
25
|
-
const example = {
|
|
26
|
-
"query": null,
|
|
27
|
-
"category": null,
|
|
28
|
-
"event": null,
|
|
29
|
-
"eventId": null,
|
|
30
|
-
"slug": null,
|
|
31
|
-
"relation": null,
|
|
32
|
-
"minConfidence": null,
|
|
33
|
-
"limit": null,
|
|
34
|
-
"includePrices": null,
|
|
35
|
-
} satisfies FetchEventMatchesParams
|
|
36
|
-
|
|
37
|
-
console.log(example)
|
|
38
|
-
|
|
39
|
-
// Convert the instance to a JSON string
|
|
40
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
-
console.log(exampleJSON)
|
|
42
|
-
|
|
43
|
-
// Parse the JSON string back to an object
|
|
44
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchEventMatchesParams
|
|
45
|
-
console.log(exampleParsed)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
19
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
20
|
|
|
50
21
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<UnifiedEvent>](UnifiedEvent.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchEvents200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchEvents200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchEvents200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [PaginatedEventsResult](PaginatedEventsResult.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchEventsPaginated200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchEventsPaginated200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchEventsPaginated200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [UnifiedMarket](UnifiedMarket.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchMarket200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchMarket200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMarket200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<MatchResult>](MatchResult.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchMarketMatches200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchMarketMatches200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMarketMatches200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -19,38 +19,6 @@ Name | Type
|
|
|
19
19
|
`minDifference` | number
|
|
20
20
|
`sort` | string
|
|
21
21
|
|
|
22
|
-
## Example
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import type { FetchMarketMatchesParams } from 'pmxtjs'
|
|
26
|
-
|
|
27
|
-
// TODO: Update the object below with actual values
|
|
28
|
-
const example = {
|
|
29
|
-
"query": null,
|
|
30
|
-
"category": null,
|
|
31
|
-
"market": null,
|
|
32
|
-
"marketId": null,
|
|
33
|
-
"slug": null,
|
|
34
|
-
"url": null,
|
|
35
|
-
"relation": null,
|
|
36
|
-
"minConfidence": null,
|
|
37
|
-
"limit": null,
|
|
38
|
-
"includePrices": null,
|
|
39
|
-
"minDifference": null,
|
|
40
|
-
"sort": null,
|
|
41
|
-
} satisfies FetchMarketMatchesParams
|
|
42
|
-
|
|
43
|
-
console.log(example)
|
|
44
|
-
|
|
45
|
-
// Convert the instance to a JSON string
|
|
46
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
-
console.log(exampleJSON)
|
|
48
|
-
|
|
49
|
-
// Parse the JSON string back to an object
|
|
50
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMarketMatchesParams
|
|
51
|
-
console.log(exampleParsed)
|
|
52
|
-
```
|
|
53
|
-
|
|
54
22
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
23
|
|
|
56
24
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<UnifiedMarket>](UnifiedMarket.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchMarkets200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchMarkets200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMarkets200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [PaginatedMarketsResult](PaginatedMarketsResult.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchMarketsPaginated200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchMarketsPaginated200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMarketsPaginated200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<MatchedMarketPair>](MatchedMarketPair.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchMatchedMarkets200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchMatchedMarkets200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMatchedMarkets200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -11,30 +11,6 @@ Name | Type
|
|
|
11
11
|
`limit` | number
|
|
12
12
|
`relations` | Array<string>
|
|
13
13
|
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { FetchMatchedMarketsParams } from 'pmxtjs'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"minDifference": null,
|
|
22
|
-
"category": null,
|
|
23
|
-
"limit": null,
|
|
24
|
-
"relations": null,
|
|
25
|
-
} satisfies FetchMatchedMarketsParams
|
|
26
|
-
|
|
27
|
-
console.log(example)
|
|
28
|
-
|
|
29
|
-
// Convert the instance to a JSON string
|
|
30
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
-
console.log(exampleJSON)
|
|
32
|
-
|
|
33
|
-
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMatchedMarketsParams
|
|
35
|
-
console.log(exampleParsed)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
14
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
15
|
|
|
40
16
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<UserTrade>](UserTrade.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchMyTrades200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchMyTrades200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchMyTrades200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<PriceCandle>](PriceCandle.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchOHLCV200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchOHLCV200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchOHLCV200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [Array<Order>](Order.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchOpenOrders200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchOpenOrders200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchOpenOrders200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|
|
@@ -10,29 +10,6 @@ Name | Type
|
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
11
|
`data` | [OrderBook](OrderBook.md)
|
|
12
12
|
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { FetchOrderBook200Response } from 'pmxtjs'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"success": true,
|
|
21
|
-
"error": null,
|
|
22
|
-
"data": null,
|
|
23
|
-
} satisfies FetchOrderBook200Response
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchOrderBook200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
13
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
14
|
|
|
38
15
|
|