@exodus/analytics-validation 2.77.0 → 2.78.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/CHANGELOG.md +10 -0
- package/lib/common-properties.schemasafe.json +34 -0
- package/lib/events.d.ts +175 -1
- package/lib/index.js +7 -2
- package/lib/main.schemasafe.json +81 -0
- package/lib/predictions/pay-predictions-account-activate.schemasafe.json +25 -0
- package/lib/predictions/pay-predictions-buy-abandon-during-processing.schemasafe.json +42 -0
- package/lib/predictions/pay-predictions-buy-confirm.schemasafe.json +50 -0
- package/lib/predictions/pay-predictions-buy-fail.schemasafe.json +45 -0
- package/lib/predictions/pay-predictions-buy-fund-trigger.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-buy-insufficient-funds.schemasafe.json +42 -0
- package/lib/predictions/pay-predictions-buy-option-change.schemasafe.json +48 -0
- package/lib/predictions/pay-predictions-buy-start.schemasafe.json +52 -0
- package/lib/predictions/pay-predictions-buy-success.schemasafe.json +61 -0
- package/lib/predictions/pay-predictions-fund-entry.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-history-item-tap.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-history-view.schemasafe.json +38 -0
- package/lib/predictions/pay-predictions-market-detail-open.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-market-resolve.schemasafe.json +51 -0
- package/lib/predictions/pay-predictions-market-swipe.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-market-view.schemasafe.json +56 -0
- package/lib/predictions/pay-predictions-open.schemasafe.json +29 -0
- package/lib/predictions/pay-predictions-position-tap.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-position-view.schemasafe.json +51 -0
- package/lib/predictions/pay-predictions-positions-see-all.schemasafe.json +30 -0
- package/lib/predictions/pay-predictions-search.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-sell-fail.schemasafe.json +45 -0
- package/lib/predictions/pay-predictions-sell-start.schemasafe.json +45 -0
- package/lib/predictions/pay-predictions-sell-success.schemasafe.json +44 -0
- package/lib/predictions/pay-predictions-tab-select.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-view-mode-change.schemasafe.json +32 -0
- package/lib/predictions/pay-predictions-winnings-claim.schemasafe.json +44 -0
- package/lib/security/security-backup-creation-initiated.schemasafe.json +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsBuyStart"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"market_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"option_selected": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"option_id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "any-string"
|
|
31
|
+
},
|
|
32
|
+
"option_price": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
"reward_pct": {
|
|
36
|
+
"type": "number",
|
|
37
|
+
"minimum": 0
|
|
38
|
+
},
|
|
39
|
+
"available_balance_usd": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"minimum": 0
|
|
42
|
+
},
|
|
43
|
+
"is_position_existing": {
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"unevaluatedProperties": false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"unevaluatedProperties": false,
|
|
51
|
+
"required": ["event", "properties"]
|
|
52
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsBuySuccess"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"market_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"option_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"position_id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "any-string"
|
|
31
|
+
},
|
|
32
|
+
"amount_usd": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"minimum": 0
|
|
35
|
+
},
|
|
36
|
+
"fee_usd": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"minimum": 0
|
|
39
|
+
},
|
|
40
|
+
"reward_pct": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"minimum": 0
|
|
43
|
+
},
|
|
44
|
+
"expected_payout_usd": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"minimum": 0
|
|
47
|
+
},
|
|
48
|
+
"is_first_buy": {
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"latency_ms": {
|
|
52
|
+
"type": "number",
|
|
53
|
+
"minimum": 0
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"unevaluatedProperties": false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"unevaluatedProperties": false,
|
|
60
|
+
"required": ["event", "properties"]
|
|
61
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsFundEntry"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"source": {
|
|
21
|
+
"enum": ["empty_state", "insufficient_funds", "proactive_top_up"]
|
|
22
|
+
},
|
|
23
|
+
"market_id": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "any-string"
|
|
26
|
+
},
|
|
27
|
+
"amount_prefilled_usd": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"minimum": 0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"unevaluatedProperties": false,
|
|
36
|
+
"required": ["event", "properties"]
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsHistoryItemTap"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"position_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"market_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"position_status": {
|
|
29
|
+
"enum": ["active", "won", "lost", "void"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"unevaluatedProperties": false,
|
|
36
|
+
"required": ["event", "properties"]
|
|
37
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsHistoryView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"positions_count": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0
|
|
23
|
+
},
|
|
24
|
+
"active_count": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"minimum": 0
|
|
27
|
+
},
|
|
28
|
+
"resolved_count": {
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": 0
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"unevaluatedProperties": false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"unevaluatedProperties": false,
|
|
37
|
+
"required": ["event", "properties"]
|
|
38
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsMarketDetailOpen"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"market_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"source_surface": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsMarketResolve"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"position_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"market_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"outcome": {
|
|
29
|
+
"enum": ["won", "lost", "void"]
|
|
30
|
+
},
|
|
31
|
+
"payout_usd": {
|
|
32
|
+
"type": "number",
|
|
33
|
+
"minimum": 0
|
|
34
|
+
},
|
|
35
|
+
"cost_basis_usd": {
|
|
36
|
+
"type": "number",
|
|
37
|
+
"minimum": 0
|
|
38
|
+
},
|
|
39
|
+
"realized_pnl_usd": {
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
"source": {
|
|
43
|
+
"enum": ["client"]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"unevaluatedProperties": false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"unevaluatedProperties": false,
|
|
50
|
+
"required": ["event", "properties"]
|
|
51
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsMarketSwipe"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"market_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"direction": {
|
|
25
|
+
"enum": ["left", "right", "up", "down"]
|
|
26
|
+
},
|
|
27
|
+
"view_duration_ms": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"minimum": 0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"unevaluatedProperties": false,
|
|
36
|
+
"required": ["event", "properties"]
|
|
37
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsMarketView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"market_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"market_category": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"market_question": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "any-string"
|
|
31
|
+
},
|
|
32
|
+
"options_count": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"minimum": 0
|
|
35
|
+
},
|
|
36
|
+
"time_remaining_seconds": {
|
|
37
|
+
"type": "number"
|
|
38
|
+
},
|
|
39
|
+
"market_volume_usd": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"minimum": 0
|
|
42
|
+
},
|
|
43
|
+
"surface": {
|
|
44
|
+
"enum": ["feed", "detail", "history", "search_results"]
|
|
45
|
+
},
|
|
46
|
+
"position": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"minimum": 0
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"unevaluatedProperties": false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"unevaluatedProperties": false,
|
|
55
|
+
"required": ["event", "properties"]
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsOpen"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"is_first_open": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false,
|
|
28
|
+
"required": ["event", "properties"]
|
|
29
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsPositionTap"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"position_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"market_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"unrealized_pnl_pct": {
|
|
29
|
+
"type": "number"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"unevaluatedProperties": false,
|
|
36
|
+
"required": ["event", "properties"]
|
|
37
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsPositionView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"position_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"market_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"current_value_usd": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"minimum": 0
|
|
31
|
+
},
|
|
32
|
+
"cost_basis_usd": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"minimum": 0
|
|
35
|
+
},
|
|
36
|
+
"unrealized_pnl_usd": {
|
|
37
|
+
"type": "number"
|
|
38
|
+
},
|
|
39
|
+
"unrealized_pnl_pct": {
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
"time_to_resolution_seconds": {
|
|
43
|
+
"type": "number"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"unevaluatedProperties": false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"unevaluatedProperties": false,
|
|
50
|
+
"required": ["event", "properties"]
|
|
51
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsPositionsSeeAll"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"active_positions_count": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"required": ["event", "properties"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsSearch"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"query_length": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0
|
|
23
|
+
},
|
|
24
|
+
"results_count": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"minimum": 0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsSellFail"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"position_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"market_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"sell_amount_usd": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"minimum": 0
|
|
31
|
+
},
|
|
32
|
+
"failure_reason": {
|
|
33
|
+
"enum": ["provider_error", "network", "market_closed", "price_changed", "other"]
|
|
34
|
+
},
|
|
35
|
+
"error_code": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": "any-string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"unevaluatedProperties": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"unevaluatedProperties": false,
|
|
44
|
+
"required": ["event", "properties"]
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsSellStart"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "common-properties#/definitions/predictionsProperties"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [],
|
|
19
|
+
"properties": {
|
|
20
|
+
"position_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string"
|
|
23
|
+
},
|
|
24
|
+
"market_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "any-string"
|
|
27
|
+
},
|
|
28
|
+
"current_position_value_usd": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"minimum": 0
|
|
31
|
+
},
|
|
32
|
+
"cost_basis_usd": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"minimum": 0
|
|
35
|
+
},
|
|
36
|
+
"unrealized_pnl_usd": {
|
|
37
|
+
"type": "number"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"unevaluatedProperties": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"unevaluatedProperties": false,
|
|
44
|
+
"required": ["event", "properties"]
|
|
45
|
+
}
|