-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.schema.json
94 lines (94 loc) · 2.83 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"network": { "type": "string", "enum": ["devnet", "mainnet"] },
"endpoint": { "type": "string" },
"programId": { "type": "string" },
"hedgeExchange": { "type": "string" },
"quoteIntervalMs": { "type": "integer", "minimum": 0 },
"riskStatsFetchIntervalMs": { "type": "integer", "minimum": 0 },
"markPriceStaleIntervalMs": { "type": "integer", "minimum": 0 },
"positionRefreshIntervalMs": { "type": "integer", "minimum": 0 },
"tifExpiryOffsetMs": { "type": "integer", "minimum": 0 },
"lockingIntervalMs": { "type": "integer", "minimum": 0 },
"cashDeltaHedgeThreshold": { "type": "integer", "minimum": 15 },
"webServerPort": { "type": "integer" },
"assets": {
"type": "object",
"properties": {
"SOL": { "$ref": "#/definitions/Asset" },
"ETH": { "$ref": "#/definitions/Asset" },
"BTC": { "$ref": "#/definitions/Asset" },
"APT": { "$ref": "#/definitions/Asset" },
"ARB": { "$ref": "#/definitions/Asset" }
},
"additionalProperties": false
}
},
"required": [
"network",
"endpoint",
"programId",
"hedgeExchange",
"quoteIntervalMs",
"markPriceStaleIntervalMs",
"riskStatsFetchIntervalMs",
"positionRefreshIntervalMs",
"tifExpiryOffsetMs",
"lockingIntervalMs",
"cashDeltaHedgeThreshold"
],
"definitions": {
"Wallet": {
"type": "array",
"items": [{ "type": "integer" }],
"minItems": 64,
"maxItems": 64
},
"Asset": {
"type": "object",
"properties": {
"maxZetaCashExposure": { "type": "integer", "minimum": 1 },
"maxNetCashDelta": { "type": "integer", "minimum": 1 },
"quoteLotSize": { "type": "number" },
"widthBps": { "type": "integer" },
"requoteBps": { "type": "integer" },
"instruments": {
"type": "array",
"items": [{ "$ref": "#/definitions/Instrument" }]
},
"leanBps": { "type": "integer" }
},
"required": [
"maxZetaCashExposure",
"maxNetCashDelta",
"quoteLotSize",
"widthBps",
"requoteBps",
"instruments"
]
},
"Instrument": {
"type": "object",
"properties": {
"marketIndex": { "type": "integer", "enum": [22, 45, 137] },
"levels": {
"type": "array",
"items": [{ "$ref": "#/definitions/InstrumentLevel" }]
}
},
"additionalProperties": false,
"required": ["marketIndex", "levels"]
},
"InstrumentLevel": {
"type": "object",
"properties": {
"priceIncr": { "type": "number" },
"quoteCashDelta": { "type": "number" }
},
"additionalProperties": false,
"required": ["priceIncr", "quoteCashDelta"]
}
}
}