Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit 49bae9d

Browse files
author
nobody
committed
JSON Schema Update
1 parent 2e266af commit 49bae9d

File tree

5 files changed

+83
-2
lines changed

5 files changed

+83
-2
lines changed

config/v3/buy/send.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"PUTSPREAD",
107107
"RUNHIGH",
108108
"RUNLOW",
109+
"ACCU",
109110
"VANILLALONGCALL",
110111
"VANILLALONGPUT"
111112
]
@@ -144,8 +145,12 @@
144145
"t"
145146
]
146147
},
148+
"growth_rate": {
149+
"description": "[Optional] Growth rate of an accumulator contract.",
150+
"type": "number"
151+
},
147152
"limit_order": {
148-
"description": "Add an order to close the contract once the order condition is met (only for `MULTUP` and `MULTDOWN` contracts).",
153+
"description": "Add an order to close the contract once the order condition is met (only for `MULTUP` and `MULTDOWN` and `ACCU` contracts).",
149154
"type": "object",
150155
"additionalProperties": false,
151156
"properties": {

config/v3/contracts_for/receive.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@
154154
},
155155
"minItems": 1
156156
},
157+
"growth_rate_range": {
158+
"description": "Growth rate range.",
159+
"type": "array"
160+
},
157161
"high_barrier": {
158162
"description": "High barrier Details.",
159163
"type": [

config/v3/proposal/receive.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,62 @@
5757
"number"
5858
]
5959
},
60+
"contract_details": {
61+
"description": "Contains contract information. (Only applicable for accumulator).",
62+
"type": "object",
63+
"additionalProperties": false,
64+
"properties": {
65+
"high_barrier": {
66+
"description": "High barrier calculated based on current spot",
67+
"type": "number",
68+
"examples": [
69+
4.9358253e-05
70+
]
71+
},
72+
"last_tick_epoch": {
73+
"description": "Epoch of last tick considered for stat chart",
74+
"type": "integer"
75+
},
76+
"low_barrier": {
77+
"description": "Low barrier calculated based on current spot",
78+
"type": "number",
79+
"examples": [
80+
4.9358253e-05
81+
]
82+
},
83+
"maximum_payout": {
84+
"description": "Maximum payout that user can get out of a contract, contract will close automatically if payout reaches this number",
85+
"type": "number",
86+
"examples": [
87+
1000.59
88+
]
89+
},
90+
"maximum_ticks": {
91+
"description": "Maximum duration that a contract can last, contract will close automatically after this number of ticks",
92+
"type": "integer",
93+
"examples": [
94+
500
95+
]
96+
},
97+
"tick_size_barrier": {
98+
"description": "Tick size barrier for Accumulator contracts",
99+
"type": "number",
100+
"examples": [
101+
4.9358253e-05
102+
]
103+
},
104+
"ticks_stayed_in": {
105+
"description": "An array of numbers to build a stat chart - each number represents the duration that spot stayed between barries",
106+
"type": "array",
107+
"items": {
108+
"type": "integer",
109+
"examples": [
110+
50
111+
]
112+
}
113+
}
114+
}
115+
},
60116
"date_expiry": {
61117
"description": "The end date of the contract.",
62118
"type": "integer",

config/v3/proposal/send.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"PUTSPREAD",
9494
"RUNHIGH",
9595
"RUNLOW",
96+
"ACCU",
9697
"VANILLALONGCALL",
9798
"VANILLALONGPUT"
9899
]
@@ -132,8 +133,12 @@
132133
"t"
133134
]
134135
},
136+
"growth_rate": {
137+
"description": "[Optional] Growth rate of an accumulator contract.",
138+
"type": "number"
139+
},
135140
"limit_order": {
136-
"description": "Add an order to close the contract once the order condition is met (only for `MULTUP` and `MULTDOWN` contracts). Supported orders: `take_profit`, `stop_loss`.",
141+
"description": "Add an order to close the contract once the order condition is met (only for `MULTUP` and `MULTDOWN` and 'ACCU' contracts). Supported orders: `take_profit`, `stop_loss`.",
137142
"type": "object",
138143
"additionalProperties": false,
139144
"properties": {

config/v3/proposal_open_contract/receive.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@
345345
1446629000
346346
]
347347
},
348+
"growth_rate": {
349+
"description": "[Only for accumulator] Growth rate of an accumulator contract.",
350+
"type": "number"
351+
},
348352
"high_barrier": {
349353
"description": "High barrier of the contract (if any).",
350354
"type": "string",
@@ -613,6 +617,13 @@
613617
"description": "Only for tick trades, number of ticks",
614618
"type": "integer"
615619
},
620+
"tick_passed": {
621+
"description": "[Only for accumulator] Number of ticks passed since entry_tick",
622+
"type": "integer",
623+
"examples": [
624+
500
625+
]
626+
},
616627
"tick_stream": {
617628
"description": "Tick stream from entry to end time.",
618629
"type": "array",

0 commit comments

Comments
 (0)