@@ -166,23 +166,6 @@ public function GetFundingAddress(Request\GetFundingAddress $req): Response\GetF
166166 return $ mapper ->map ($ res , new Response \GetFundingAddress );
167167 }
168168
169- /**
170- * GetLightningReceive makes a call to GET /api/1/lightning/receive/{id}.
171- *
172- * <b>Alpha warning!</b> The Lightning API is still in Alpha stage.
173- * The risks are limited api availability and channel capacity.
174- *
175- * Lookup the status of a Lightning Receive Invoice.
176- *
177- * Permissions required: <code>Perm_W_Send</code>
178- */
179- public function GetLightningReceive (Request \GetLightningReceive $ req ): Response \GetLightningReceive
180- {
181- $ res = $ this ->do ("GET " , "/api/1/lightning/receive/{id} " , $ req , true );
182- $ mapper = new \JsonMapper ();
183- return $ mapper ->map ($ res , new Response \GetLightningReceive );
184- }
185-
186169 /**
187170 * GetOrder makes a call to GET /api/1/orders/{id}.
188171 *
@@ -237,6 +220,22 @@ public function GetOrderBookFull(Request\GetOrderBookFull $req): Response\GetOrd
237220 return $ mapper ->map ($ res , new Response \GetOrderBookFull );
238221 }
239222
223+ /**
224+ * GetOrderV2 makes a call to GET /api/exchange/2/orders/{id}.
225+ *
226+ * Get the details for an order.<br>
227+ * This endpoint is in BETA, behaviour and specification may change without
228+ * any previous notice.
229+ *
230+ * Permissions required: <code>Perm_R_Orders</code>
231+ */
232+ public function GetOrderV2 (Request \GetOrderV2 $ req ): Response \GetOrderV2
233+ {
234+ $ res = $ this ->do ("GET " , "/api/exchange/2/orders/{id} " , $ req , true );
235+ $ mapper = new \JsonMapper ();
236+ return $ mapper ->map ($ res , new Response \GetOrderV2 );
237+ }
238+
240239 /**
241240 * GetQuote makes a call to GET /api/1/quotes/{id}.
242241 *
@@ -324,6 +323,23 @@ public function ListOrders(Request\ListOrders $req): Response\ListOrders
324323 return $ mapper ->map ($ res , new Response \ListOrders );
325324 }
326325
326+ /**
327+ * ListOrdersV2 makes a call to GET /api/exchange/2/listorders.
328+ *
329+ * Returns a list of the most recently placed orders. This endpoint will list
330+ * up to 100 open orders by default.<br>
331+ * This endpoint is in BETA, behaviour and specification may change without
332+ * any previous notice.
333+ *
334+ * Permissions required: <Code>Perm_R_Orders</Code>
335+ */
336+ public function ListOrdersV2 (Request \ListOrdersV2 $ req ): Response \ListOrdersV2
337+ {
338+ $ res = $ this ->do ("GET " , "/api/exchange/2/listorders " , $ req , true );
339+ $ mapper = new \JsonMapper ();
340+ return $ mapper ->map ($ res , new Response \ListOrdersV2 );
341+ }
342+
327343 /**
328344 * ListPendingTransactions makes a call to GET /api/1/accounts/{id}/pending.
329345 *
@@ -414,6 +430,19 @@ public function ListWithdrawals(Request\ListWithdrawals $req): Response\ListWith
414430 return $ mapper ->map ($ res , new Response \ListWithdrawals );
415431 }
416432
433+ /**
434+ * Markets makes a call to GET /api/exchange/1/markets.
435+ *
436+ * Get all supported markets parameter information like price scale, min and
437+ * max volumes and market ID.
438+ */
439+ public function Markets (Request \Markets $ req ): Response \Markets
440+ {
441+ $ res = $ this ->do ("GET " , "/api/exchange/1/markets " , $ req , false );
442+ $ mapper = new \JsonMapper ();
443+ return $ mapper ->map ($ res , new Response \Markets );
444+ }
445+
417446 /**
418447 * PostLimitOrder makes a call to POST /api/1/postorder.
419448 *
@@ -457,24 +486,6 @@ public function PostMarketOrder(Request\PostMarketOrder $req): Response\PostMark
457486 return $ mapper ->map ($ res , new Response \PostMarketOrder );
458487 }
459488
460- /**
461- * ReceiveLightning makes a call to POST /api/1/lightning/receive.
462- *
463- * <b>Alpha warning!</b> The Lightning API is still in Alpha stage.
464- * The risks are limited api availability and channel capacity.
465- *
466- * Create a lightning invoice which can be used to receive
467- * BTC payments over the lightning network.
468- *
469- * Permissions required: <code>Perm_W_Send</code>
470- */
471- public function ReceiveLightning (Request \ReceiveLightning $ req ): Response \ReceiveLightning
472- {
473- $ res = $ this ->do ("POST " , "/api/1/lightning/receive " , $ req , true );
474- $ mapper = new \JsonMapper ();
475- return $ mapper ->map ($ res , new Response \ReceiveLightning );
476- }
477-
478489 /**
479490 * Send makes a call to POST /api/1/send.
480491 *
@@ -491,32 +502,12 @@ public function Send(Request\Send $req): Response\Send
491502 return $ mapper ->map ($ res , new Response \Send );
492503 }
493504
494- /**
495- * SendLightning makes a call to POST /api/1/lightning/send.
496- *
497- * <b>Alpha warning!</b> The Lightning API is still in Alpha stage.
498- * The risks are limited api availability and channel capacity.
499- *
500- * Send Bitcoin over the Lightning network from your Bitcoin Account.
501- *
502- * Warning! Cryptocurrency transactions are irreversible. Please ensure your
503- * program has been thoroughly tested before using this call.
504- *
505- * Permissions required: <code>Perm_W_Send</code>
506- */
507- public function SendLightning (Request \SendLightning $ req ): Response \SendLightning
508- {
509- $ res = $ this ->do ("POST " , "/api/1/lightning/send " , $ req , true );
510- $ mapper = new \JsonMapper ();
511- return $ mapper ->map ($ res , new Response \SendLightning );
512- }
513-
514505 /**
515506 * StopOrder makes a call to POST /api/1/stoporder.
516507 *
517508 * Request to stop an Order.
518509 *
519- * <b>Note!</b>: Once as Order has been completed, it can not be reversed.
510+ * <b>Note!</b>: Once an Order has been completed, it can not be reversed.
520511 * The return value from this request will indicate if the Stop request was successful or not.
521512 *
522513 * Permissions required: <code>Perm_W_Orders</code>
0 commit comments