-
Notifications
You must be signed in to change notification settings - Fork 4
/
schema.patch
184 lines (184 loc) · 7.94 KB
/
schema.patch
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
diff --git a/config/v3/landing_company/receive.json b/config/v3/landing_company/receive.json
index 55f8f6ce..103aba64 100644
--- a/config/v3/landing_company/receive.json
+++ b/config/v3/landing_company/receive.json
@@ -970,11 +970,11 @@
"additionalProperties": false,
"properties": {
"swap_free": {
- "$ref": "#/$defs/landingCompanyDetails",
+ "$ref": "#/$defs/landingCompanyInfo",
"description": "Landing Company for MT5 combined all Synthetic and financial"
},
"zero_spread": {
- "$ref": "#/$defs/landingCompanyDetails",
+ "$ref": "#/$defs/landingCompanyInfo",
"description": "Contain details for landing company for zero_spread sub account type."
}
}
@@ -1638,7 +1638,7 @@
}
}
},
- "landingCompanyDetails": {
+ "landingCompanyInfo": {
"type": [
"null",
"object"
diff --git a/config/v3/p2p_advert_create/send.json b/config/v3/p2p_advert_create/send.json
index dc877283..a7837e5f 100644
--- a/config/v3/p2p_advert_create/send.json
+++ b/config/v3/p2p_advert_create/send.json
@@ -27,8 +27,7 @@
"amount": {
"description": "The total amount of the advert, in advertiser's account currency.",
"type": "number",
- "exclusiveMinimum": true,
- "minimum": 0
+ "exclusiveMinimum": 0
},
"block_trade": {
"description": "[Optional] Indicates if this is block trade ad or not. Default: 0.",
@@ -72,8 +71,7 @@
"max_order_amount": {
"description": "Maximum allowed amount for the orders of this advert, in advertiser's `account_currency`. Should be more than or equal to `min_order_amount`",
"type": "number",
- "exclusiveMinimum": true,
- "minimum": 0
+ "exclusiveMinimum": 0
},
"min_completion_rate": {
"description": "[Optional] Counterparties who have a 30 day completion rate less than this value will not be allowed to place orders against the advert.",
@@ -90,8 +88,7 @@
"min_order_amount": {
"description": "Minimum allowed amount for the orders of this advert, in advertiser's `account_currency`. Should be less than or equal to `max_order_amount`.",
"type": "number",
- "exclusiveMinimum": true,
- "minimum": 0
+ "exclusiveMinimum": 0
},
"min_rating": {
"description": "[Optional] Counterparties who have an average rating less than this value will not be allowed to place orders against the advert.",
@@ -166,4 +163,4 @@
"type": "integer"
}
}
-}
+}
\ No newline at end of file
diff --git a/config/v3/p2p_advert_update/send.json b/config/v3/p2p_advert_update/send.json
index 4b4a5133..5140ce16 100644
--- a/config/v3/p2p_advert_update/send.json
+++ b/config/v3/p2p_advert_update/send.json
@@ -77,8 +77,7 @@
"max_order_amount": {
"description": "[Optional] Maximum allowed amount for the orders of this advert, in advertiser's `account_currency`. Should be more than or equal to `min_order_amount`.",
"type": "number",
- "exclusiveMinimum": true,
- "minimum": 0
+ "exclusiveMinimum": 0
},
"min_completion_rate": {
"description": "[Optional] Counterparties who have a 30 day completion rate less than this value will not be allowed to place orders against this advert. A an empty array or null value will clear the condition.",
@@ -101,8 +100,7 @@
"min_order_amount": {
"description": "[Optional] Minimum allowed amount for the orders of this advert, in advertiser's `account_currency`. Should be less than or equal to `max_order_amount`.",
"type": "number",
- "exclusiveMinimum": true,
- "minimum": 0
+ "exclusiveMinimum": 0
},
"min_rating": {
"description": "[Optional] Counterparties who have an average rating less than this value will not be allowed to place orders against this advert. A null value will clear the condition.",
@@ -172,4 +170,4 @@
"type": "integer"
}
}
-}
+}
\ No newline at end of file
diff --git a/config/v3/ticks_history/receive.json b/config/v3/ticks_history/receive.json
index e9f4218b..82fb80a1 100644
--- a/config/v3/ticks_history/receive.json
+++ b/config/v3/ticks_history/receive.json
@@ -63,6 +63,54 @@
}
}
},
+ "ohlc": {
+ "title": "ohlc",
+ "description": "Historic tick data for a given symbol. Note: this will always return the latest possible set of ticks with accordance to the parameters specified.",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "close": {
+ "description": "It is the close price value for the given time",
+ "type": "string"
+ },
+ "epoch": {
+ "description": "It is an epoch value",
+ "type": "integer"
+ },
+ "granularity": {
+ "description": "Granularity",
+ "type": "integer"
+ },
+ "high": {
+ "description": "It is the high price value for the given time",
+ "type": "string"
+ },
+ "id": {
+ "description": "Subscription unique identifier. Can be passed to the `forget` API call to unsubscribe.",
+ "type": "string"
+ },
+ "low":{
+ "description": "It is the low price value for the given time",
+ "type": "string"
+ },
+ "open": {
+ "description": "It is the open price value for the given time",
+ "type": "string"
+ },
+ "open_time": {
+ "description": "It is an epoch of open time",
+ "type": "integer"
+ },
+ "pip_size": {
+ "description": "PIP size",
+ "type": "integer"
+ },
+ "symbol": {
+ "description": "Symbol name",
+ "type": "string"
+ }
+ }
+ },
"pip_size": {
"description": "Indicates the number of decimal points that the returned amounts must be displayed with",
"type": "number"
diff --git a/config/v3/ticks_history/send.json b/config/v3/ticks_history/send.json
index d9d39db9..0cc7b01d 100644
--- a/config/v3/ticks_history/send.json
+++ b/config/v3/ticks_history/send.json
@@ -25,7 +25,7 @@
"count": {
"description": "[Optional] An upper limit on ticks to receive.",
"type": "integer",
- "default": "5000"
+ "default": 5000
},
"end": {
"description": "Epoch value representing the latest boundary of the returned ticks. If `latest` is specified, this will be the latest available timestamp.",
diff --git a/config/v3/transaction/receive.json b/config/v3/transaction/receive.json
index 3fbfd10e..1c4e73d3 100644
--- a/config/v3/transaction/receive.json
+++ b/config/v3/transaction/receive.json
@@ -38,7 +38,7 @@
"balance": {
"description": "Balance amount",
"type": "number",
- "maximum": 9999999999999999999,
+ "maximum": 9223372036854775807,
"minimum": 0
},
"barrier": {