|
1 |
| -# OpenAPI specification |
2 |
| ---- |
| 1 | +# API Changelog 1.1.0 vs. 1.1.1 |
3 | 2 |
|
4 |
| -The engineering team at Paymium has been quietly transitioning away from our old API documentation, and migrating to new docs that are based on an OpenAPI 2.0 schema. The new documentation is a significant improvement and provides benefits to both third party developers and Paymium engineering. |
| 3 | +## GET /user/orders |
| 4 | +- added the new optional 'query' request parameter 'page' |
| 5 | +- added the new optional 'query' request parameter 'per_page' |
| 6 | +- added the media type 'application/json; charset=utf-8' for the response with the status '200' |
5 | 7 |
|
6 |
| -## Main changes |
7 |
| -The main change is currency amounts format (see below for details). It were represented using the type Number in JSON. The accuracy for this data type returned by our servers was an arbitrary precision integer arithmetic (double). To conform with JSON standard and avoid that JSON clients parse these data as normal binary floating point arithmetic (float), we changed this representation into String type. |
| 8 | +## DELETE /user/orders/{uuid}/cancel |
| 9 | +- api path removed with deprecation |
8 | 10 |
|
9 |
| -# What's New |
10 |
| ---- |
| 11 | +## GET /user/price_alerts |
| 12 | +- :warning: api path removed without deprecation |
11 | 13 |
|
12 |
| -## `POST` /user/withdrawals |
| 14 | +## POST /user/price_alerts |
| 15 | +- :warning: api path removed without deprecation |
13 | 16 |
|
14 |
| -> Create withdrawal |
| 17 | +## DELETE /user/price_alerts/{id} |
| 18 | +- :warning: api path removed without deprecation |
15 | 19 |
|
16 |
| -Withdrawals used: |
17 |
| - |
18 |
| - POST /user/orders with "Transfer" type |
19 |
| - |
20 |
| -It's no longer necessary to specify type property with this new endpoint. |
21 |
| - |
22 |
| -## `POST` /user/email_transfers |
23 |
| - |
24 |
| -> Create email transfer |
25 |
| -
|
26 |
| -Email transfers used: |
27 |
| - |
28 |
| - POST /user/orders with "EmailTransfer" type |
29 |
| -It's no longer necessary to specify type property with this new endpoint. |
30 |
| - |
31 |
| - |
32 |
| -## `DELETE` /user/orders/{uuid} |
33 |
| - |
34 |
| -> Cancel order |
35 |
| -
|
36 |
| -It replaces old endpoint: |
37 |
| - |
38 |
| - DELETE /user/orders/{uuid}/cancel |
39 |
| - |
40 |
| -Old endpoint is marked as *DEPRECATED*, it didn't respond to REST resource naming in using CRUD function name in URI. |
41 |
| -It still works in this API version. |
42 |
| - |
43 |
| - |
44 |
| - |
45 |
| -# What's Changed |
46 |
| ---- |
47 |
| - |
48 |
| -## `GET` /data/{currency}/ticker |
49 |
| - |
50 |
| - |
51 |
| -### Return Type: |
52 |
| - |
53 |
| -Changed response : **200 OK** |
54 |
| - |
55 |
| -* Changed content type : `application/json; charset=utf-8` |
56 |
| - |
57 |
| - * Changed property `high` (number -> string) |
58 |
| - > 24h high price |
59 |
| - |
60 |
| - * Changed property `low` (number -> string) |
61 |
| - > 24h low price |
62 |
| -
|
63 |
| - * Changed property `volume` (number -> string) |
64 |
| - > 24h volume |
65 |
| -
|
66 |
| - * Changed property `bid` (number -> string) |
67 |
| - > bid price |
68 |
| -
|
69 |
| - * Changed property `ask` (number -> string) |
70 |
| - > ask price |
71 |
| -
|
72 |
| - * Changed property `midpoint` (number -> string) |
73 |
| - > midpoint price |
74 |
| -
|
75 |
| - * Changed property `price` (number -> string) |
76 |
| - > price of latest trade |
77 |
| -
|
78 |
| - * Changed property `variation` (number -> string) |
79 |
| - > 24h variation (percentage) |
80 |
| -
|
81 |
| -## `GET` /data/{currency}/trades |
82 |
| - |
83 |
| - |
84 |
| -## Return Type: |
85 |
| - |
86 |
| -Changed response : **200 OK** |
87 |
| -> An array of trades |
88 |
| -
|
89 |
| -* Changed content type : `application/json; charset=utf-8` |
90 |
| - |
91 |
| - Changed items (object): |
92 |
| - |
93 |
| - * Changed property `traded_btc` (number -> string) |
94 |
| - > amount of BTC traded |
95 |
| - |
96 |
| - * Changed property `traded_currency` (number -> string) |
97 |
| - > amount of currency traded |
98 |
| -
|
99 |
| - * Changed property `price` (number -> string) |
100 |
| - > price per BTC |
101 |
| -
|
102 |
| -## `GET` /data/{currency}/depth |
103 |
| - |
104 |
| - |
105 |
| -### Return Type: |
106 |
| - |
107 |
| -Changed response : **200 OK** |
108 |
| - |
109 |
| -* Changed content type : `application/json; charset=utf-8` |
110 |
| - |
111 |
| - * Changed property `bids` (array) |
112 |
| - |
113 |
| - Changed items (object): |
114 |
| - |
115 |
| - * Changed property `amount` (number -> string) |
116 |
| - > amount at price |
117 |
| - |
118 |
| - * Changed property `price` (number -> string) |
119 |
| - |
120 |
| - * Changed property `asks` (array) |
121 |
| - |
122 |
| - Changed items (object): |
123 |
| - |
124 |
| - * Changed property `amount` (number -> string) |
125 |
| - > amount at price |
126 |
| - |
127 |
| - * Changed property `price` (number -> string) |
128 |
| - |
129 |
| -## `GET` /user |
130 |
| - |
131 |
| - |
132 |
| -### Return Type: |
133 |
| - |
134 |
| -Changed response : **200 OK** |
135 |
| - |
136 |
| -* Changed content type : `application/json; charset=utf-8` |
137 |
| - |
138 |
| - * Changed property `balance_btc` (number -> string) |
139 |
| - > available BTC balance |
140 |
| - |
141 |
| - * Changed property `locked_btc` (number -> string) |
142 |
| - > BTC balance locked in trading |
143 |
| -
|
144 |
| - * Changed property `balance_eur` (number -> string) |
145 |
| - > available EUR balance |
146 |
| -
|
147 |
| - * Changed property `locked_eur` (number -> string) |
148 |
| - > EUR balance locked in trading |
149 |
| -
|
150 |
| -## `GET` /user/orders |
151 |
| - |
152 |
| - |
153 |
| -### Return Type: |
154 |
| - |
155 |
| -Changed response : **200 OK** |
156 |
| - |
157 |
| -* Changed content type : `application/json; charset=utf-8` |
158 |
| - |
159 |
| - Changed items (object): |
160 |
| - |
161 |
| - * Changed property `amount` (number -> string) |
162 |
| - > currency amount |
163 |
| - |
164 |
| - * Changed property `currency_fee` (number -> string) |
165 |
| - > currency fee collected |
166 |
| -
|
167 |
| - * Changed property `btc_fee` (number -> string) |
168 |
| - > btc fee collected |
169 |
| -
|
170 |
| - * Changed property `traded_btc` (number -> string) |
171 |
| - |
172 |
| - * Changed property `traded_currency` (number -> string) |
173 |
| - |
174 |
| - * Changed property `price` (number -> string) |
175 |
| - |
176 |
| - * Changed property `account_operations` (array) |
177 |
| - |
178 |
| - Changed items (object): |
179 |
| - |
180 |
| - * Changed property `amount` (number -> string) |
181 |
| - > currency amount |
182 |
| - |
183 |
| -## `POST` /user/orders |
184 |
| - |
185 |
| - |
186 |
| -### Return Type: |
187 |
| - |
188 |
| -Changed response : **201 Created** |
189 |
| - |
190 |
| -* Changed content type : `application/json; charset=utf-8` |
191 |
| - |
192 |
| - * Changed property `amount` (number -> string) |
193 |
| - > currency amount |
194 |
| - |
195 |
| - * Changed property `currency_fee` (number -> string) |
196 |
| - > currency fee collected |
197 |
| -
|
198 |
| - * Changed property `btc_fee` (number -> string) |
199 |
| - > btc fee collected |
200 |
| -
|
201 |
| - * Changed property `traded_btc` (number -> string) |
202 |
| - |
203 |
| - * Changed property `traded_currency` (number -> string) |
204 |
| - |
205 |
| - * Changed property `price` (number -> string) |
206 |
| - |
207 |
| - * Changed property `account_operations` (array) |
208 |
| - |
209 |
| - Changed items (object): |
210 |
| - |
211 |
| - * Changed property `amount` (number -> string) |
212 |
| - > currency amount |
213 |
| - |
214 |
| -## `GET` /user/orders/{uuid} |
215 |
| - |
216 |
| - |
217 |
| -### Return Type: |
218 |
| - |
219 |
| -Changed response : **200 OK** |
220 |
| - |
221 |
| -* Changed content type : `application/json; charset=utf-8` |
222 |
| - |
223 |
| - * Changed property `amount` (number -> string) |
224 |
| - > currency amount |
225 |
| - |
226 |
| - * Changed property `currency_fee` (number -> string) |
227 |
| - > currency fee collected |
228 |
| -
|
229 |
| - * Changed property `btc_fee` (number -> string) |
230 |
| - > btc fee collected |
231 |
| -
|
232 |
| - * Changed property `traded_btc` (number -> string) |
233 |
| - |
234 |
| - * Changed property `traded_currency` (number -> string) |
235 |
| - |
236 |
| - * Changed property `price` (number -> string) |
237 |
| - |
238 |
| - * Changed property `account_operations` (array) |
239 |
| - |
240 |
| - Changed items (object): |
241 |
| - |
242 |
| - * Changed property `amount` (number -> string) |
243 |
| - > currency amount |
244 |
| - |
245 |
| -## `DELETE` /user/orders/{uuid}/cancel |
246 |
| - |
247 |
| - |
248 |
| -## `POST` /merchant/create_payment |
249 |
| - |
250 |
| - |
251 |
| -### Return Type: |
252 |
| - |
253 |
| -Changed response : **201 Created** |
254 |
| - |
255 |
| -* Changed content type : `application/json; charset=utf-8` |
256 |
| - |
257 |
| - * Changed property `amount` (number -> string) |
258 |
| - |
259 |
| - * Changed property `btc_amount` (number -> string) |
260 |
| - > BTC amount to pay |
261 |
| -
|
262 |
| - * Changed property `account_operations` (object) |
263 |
| - |
264 |
| - * Changed property `amount` (number -> string) |
265 |
| - > currency amount |
266 |
| - |
267 |
| -## `GET` /merchant/get_payment/{uuid} |
268 |
| - |
269 |
| - |
270 |
| -### Return Type: |
271 |
| - |
272 |
| -Changed response : **200 OK** |
273 |
| - |
274 |
| -* Changed content type : `application/json; charset=utf-8` |
275 |
| - |
276 |
| - * Changed property `amount` (number -> string) |
277 |
| - |
278 |
| - * Changed property `btc_amount` (number -> string) |
279 |
| - > BTC amount to pay |
280 |
| -
|
281 |
| - * Changed property `account_operations` (object) |
282 |
| - |
283 |
| - * Changed property `amount` (number -> string) |
284 |
| - > currency amount |
| 20 | +## GET /user/withdrawals |
| 21 | +- endpoint added |
285 | 22 |
|
0 commit comments