pmxtjs 2.32.4 → 2.33.1
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/esm/generated/src/apis/DefaultApi.d.ts +243 -1
- package/dist/esm/generated/src/apis/DefaultApi.js +387 -31
- package/dist/esm/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
- package/dist/esm/generated/src/models/ArbitrageOpportunity.js +68 -0
- package/dist/esm/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/CompareMarketPrices200Response.js +47 -0
- package/dist/esm/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
- package/dist/esm/generated/src/models/CompareMarketPricesRequest.js +47 -0
- package/dist/esm/generated/src/models/EventMatchResult.d.ts +40 -0
- package/dist/esm/generated/src/models/EventMatchResult.js +49 -0
- package/dist/esm/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchArbitrage200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchArbitrageParams.d.ts +44 -0
- package/dist/esm/generated/src/models/FetchArbitrageParams.js +45 -0
- package/dist/esm/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchEventMatches200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
- package/dist/esm/generated/src/models/FetchEventMatchesParams.js +61 -0
- package/dist/esm/generated/src/models/FetchMatches200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchMatches200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchMatchesParams.d.ts +79 -0
- package/dist/esm/generated/src/models/FetchMatchesParams.js +63 -0
- package/dist/esm/generated/src/models/MatchResult.d.ts +74 -0
- package/dist/esm/generated/src/models/MatchResult.js +74 -0
- package/dist/esm/generated/src/models/PriceComparison.d.ts +80 -0
- package/dist/esm/generated/src/models/PriceComparison.js +78 -0
- package/dist/esm/generated/src/models/index.d.ts +12 -0
- package/dist/esm/generated/src/models/index.js +12 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +243 -1
- package/dist/generated/src/apis/DefaultApi.js +388 -31
- package/dist/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
- package/dist/generated/src/models/ArbitrageOpportunity.js +75 -0
- package/dist/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
- package/dist/generated/src/models/CompareMarketPrices200Response.js +54 -0
- package/dist/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
- package/dist/generated/src/models/CompareMarketPricesRequest.js +54 -0
- package/dist/generated/src/models/EventMatchResult.d.ts +40 -0
- package/dist/generated/src/models/EventMatchResult.js +56 -0
- package/dist/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchArbitrage200Response.js +54 -0
- package/dist/generated/src/models/FetchArbitrageParams.d.ts +44 -0
- package/dist/generated/src/models/FetchArbitrageParams.js +52 -0
- package/dist/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchEventMatches200Response.js +54 -0
- package/dist/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
- package/dist/generated/src/models/FetchEventMatchesParams.js +69 -0
- package/dist/generated/src/models/FetchMatches200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchMatches200Response.js +54 -0
- package/dist/generated/src/models/FetchMatchesParams.d.ts +79 -0
- package/dist/generated/src/models/FetchMatchesParams.js +71 -0
- package/dist/generated/src/models/MatchResult.d.ts +74 -0
- package/dist/generated/src/models/MatchResult.js +82 -0
- package/dist/generated/src/models/PriceComparison.d.ts +80 -0
- package/dist/generated/src/models/PriceComparison.js +86 -0
- package/dist/generated/src/models/index.d.ts +12 -0
- package/dist/generated/src/models/index.js +12 -0
- package/generated/.openapi-generator/FILES +24 -0
- package/generated/docs/ArbitrageOpportunity.md +46 -0
- package/generated/docs/CompareMarketPrices200Response.md +38 -0
- package/generated/docs/CompareMarketPricesRequest.md +36 -0
- package/generated/docs/DefaultApi.md +472 -60
- package/generated/docs/EventMatchResult.md +36 -0
- package/generated/docs/FetchArbitrage200Response.md +38 -0
- package/generated/docs/FetchArbitrageParams.md +38 -0
- package/generated/docs/FetchEventMatches200Response.md +38 -0
- package/generated/docs/FetchEventMatchesParams.md +44 -0
- package/generated/docs/FetchMatches200Response.md +38 -0
- package/generated/docs/FetchMatchesParams.md +46 -0
- package/generated/docs/MatchResult.md +44 -0
- package/generated/docs/PriceComparison.md +46 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +532 -30
- package/generated/src/models/ArbitrageOpportunity.ts +128 -0
- package/generated/src/models/CompareMarketPrices200Response.ts +96 -0
- package/generated/src/models/CompareMarketPricesRequest.ts +89 -0
- package/generated/src/models/EventMatchResult.ts +90 -0
- package/generated/src/models/FetchArbitrage200Response.ts +96 -0
- package/generated/src/models/FetchArbitrageParams.ts +81 -0
- package/generated/src/models/FetchEventMatches200Response.ts +96 -0
- package/generated/src/models/FetchEventMatchesParams.ts +119 -0
- package/generated/src/models/FetchMatches200Response.ts +96 -0
- package/generated/src/models/FetchMatchesParams.ts +127 -0
- package/generated/src/models/MatchResult.ts +133 -0
- package/generated/src/models/PriceComparison.ts +142 -0
- package/generated/src/models/index.ts +12 -0
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# EventMatchResult
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`event` | [UnifiedEvent](UnifiedEvent.md)
|
|
10
|
+
`marketMatches` | [Array<MatchResult>](MatchResult.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { EventMatchResult } from 'pmxtjs'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"event": null,
|
|
20
|
+
"marketMatches": null,
|
|
21
|
+
} satisfies EventMatchResult
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as EventMatchResult
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# FetchArbitrage200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`success` | boolean
|
|
10
|
+
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
|
+
`data` | [Array<ArbitrageOpportunity>](ArbitrageOpportunity.md)
|
|
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
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# FetchArbitrageParams
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`minSpread` | number
|
|
10
|
+
`category` | string
|
|
11
|
+
`limit` | number
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { FetchArbitrageParams } from 'pmxtjs'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"minSpread": null,
|
|
21
|
+
"category": null,
|
|
22
|
+
"limit": null,
|
|
23
|
+
} satisfies FetchArbitrageParams
|
|
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 FetchArbitrageParams
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# FetchEventMatches200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`success` | boolean
|
|
10
|
+
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
|
+
`data` | [Array<EventMatchResult>](EventMatchResult.md)
|
|
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
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# FetchEventMatchesParams
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`eventId` | string
|
|
10
|
+
`slug` | string
|
|
11
|
+
`relation` | string
|
|
12
|
+
`minConfidence` | number
|
|
13
|
+
`limit` | number
|
|
14
|
+
`includePrices` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { FetchEventMatchesParams } from 'pmxtjs'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"eventId": null,
|
|
24
|
+
"slug": null,
|
|
25
|
+
"relation": null,
|
|
26
|
+
"minConfidence": null,
|
|
27
|
+
"limit": null,
|
|
28
|
+
"includePrices": null,
|
|
29
|
+
} satisfies FetchEventMatchesParams
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as FetchEventMatchesParams
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# FetchMatches200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`success` | boolean
|
|
10
|
+
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
|
+
`data` | [Array<MatchResult>](MatchResult.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { FetchMatches200Response } 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 FetchMatches200Response
|
|
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 FetchMatches200Response
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# FetchMatchesParams
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`marketId` | string
|
|
10
|
+
`slug` | string
|
|
11
|
+
`url` | string
|
|
12
|
+
`relation` | string
|
|
13
|
+
`minConfidence` | number
|
|
14
|
+
`limit` | number
|
|
15
|
+
`includePrices` | boolean
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { FetchMatchesParams } from 'pmxtjs'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"marketId": null,
|
|
25
|
+
"slug": null,
|
|
26
|
+
"url": null,
|
|
27
|
+
"relation": null,
|
|
28
|
+
"minConfidence": null,
|
|
29
|
+
"limit": null,
|
|
30
|
+
"includePrices": null,
|
|
31
|
+
} satisfies FetchMatchesParams
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as FetchMatchesParams
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# MatchResult
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`market` | [UnifiedMarket](UnifiedMarket.md)
|
|
10
|
+
`relation` | string
|
|
11
|
+
`confidence` | number
|
|
12
|
+
`reasoning` | string
|
|
13
|
+
`bestBid` | number
|
|
14
|
+
`bestAsk` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { MatchResult } from 'pmxtjs'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"market": null,
|
|
24
|
+
"relation": null,
|
|
25
|
+
"confidence": null,
|
|
26
|
+
"reasoning": null,
|
|
27
|
+
"bestBid": null,
|
|
28
|
+
"bestAsk": null,
|
|
29
|
+
} satisfies MatchResult
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as MatchResult
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# PriceComparison
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`market` | [UnifiedMarket](UnifiedMarket.md)
|
|
10
|
+
`relation` | string
|
|
11
|
+
`confidence` | number
|
|
12
|
+
`reasoning` | string
|
|
13
|
+
`bestBid` | number
|
|
14
|
+
`bestAsk` | number
|
|
15
|
+
`venue` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { PriceComparison } from 'pmxtjs'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"market": null,
|
|
25
|
+
"relation": null,
|
|
26
|
+
"confidence": null,
|
|
27
|
+
"reasoning": null,
|
|
28
|
+
"bestBid": null,
|
|
29
|
+
"bestAsk": null,
|
|
30
|
+
"venue": null,
|
|
31
|
+
} satisfies PriceComparison
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as PriceComparison
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|