File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,17 @@ func (c *Client) NewListOpenOrdersServiceUM() *ListOpenOrdersServiceUM {
309309 return & ListOpenOrdersServiceUM {Fs : fc .NewListOpenOrdersService ()}
310310}
311311
312+ // List liquidation orders
313+ func (c * Client ) NewListLiquidationOrdersServiceCM () * ListLiquidationOrdersServiceCM {
314+ dc := c .newDeliveryClient ()
315+ return & ListLiquidationOrdersServiceCM {Ds : dc .NewListLiquidationOrdersService ()}
316+ }
317+
318+ func (c * Client ) NewListLiquidationOrdersServiceUM () * ListLiquidationOrdersServiceUM {
319+ fc := c .newFutureClient ()
320+ return & ListLiquidationOrdersServiceUM {Fs : fc .NewListLiquidationOrdersService ()}
321+ }
322+
312323// Change leverage
313324func (c * Client ) NewChangeLeverageServiceCM () * ChangeLeverageServiceCM {
314325 dc := c .newDeliveryClient ()
Original file line number Diff line number Diff line change @@ -228,3 +228,27 @@ func (s *ListOpenOrdersServiceUM) Do(
228228 opts = append (opts , futures .WithEndpoint ("/papi/v1/um/openOrders" ))
229229 return s .Fs .Do (ctx , opts ... )
230230}
231+
232+ type ListLiquidationOrdersServiceCM struct {
233+ Ds * delivery.ListLiquidationOrdersService
234+ }
235+
236+ func (s * ListLiquidationOrdersServiceCM ) Do (
237+ ctx context.Context ,
238+ opts ... delivery.RequestOption ,
239+ ) ([]* delivery.LiquidationOrder , error ) {
240+ opts = append (opts , delivery .WithEndpoint ("/papi/v1/cm/forceOrders" ))
241+ return s .Ds .Do (ctx , opts ... )
242+ }
243+
244+ type ListLiquidationOrdersServiceUM struct {
245+ Fs * futures.ListLiquidationOrdersService
246+ }
247+
248+ func (s * ListLiquidationOrdersServiceUM ) Do (
249+ ctx context.Context ,
250+ opts ... futures.RequestOption ,
251+ ) ([]* futures.LiquidationOrder , error ) {
252+ opts = append (opts , futures .WithEndpoint ("/papi/v1/um/forceOrders" ))
253+ return s .Fs .Do (ctx , opts ... )
254+ }
You can’t perform that action at this time.
0 commit comments