mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Add submit cancel all funding offer
Thanks to @charlychiu (https://github.com/bitfinexcom/bitfinex-api-py/pull/169)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
1.3.4
|
||||
-) Fixed undefined p_sub issue in subscription_manager.py
|
||||
-) Added submit cancel all funding orders endpoint (REST)
|
||||
|
||||
1.3.3
|
||||
-) Fixed socket.send() issue (IndexError: deque index out of range)
|
||||
|
||||
|
||||
@@ -636,6 +636,17 @@ class BfxRest:
|
||||
raw_notification = await self.post(endpoint, {'id': fundingId})
|
||||
return Notification.from_raw_notification(raw_notification)
|
||||
|
||||
async def submit_cancel_all_funding_offer(self, currency):
|
||||
"""
|
||||
Cancel all funding offers at once
|
||||
|
||||
# Attributes
|
||||
@param currency str: currency for which to cancel all offers (USD, BTC, UST ...)
|
||||
"""
|
||||
endpoint = "auth/w/funding/offer/cancel/all"
|
||||
raw_notification = await self.post(endpoint, {'currency': currency})
|
||||
return Notification.from_raw_notification(raw_notification)
|
||||
|
||||
async def keep_funding(self, type, id):
|
||||
"""
|
||||
Toggle to keep funding taken. Specify loan for unused funding and credit for used funding.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
This module contains the current version of the bfxapi lib
|
||||
"""
|
||||
|
||||
__version__ = '1.3.3'
|
||||
__version__ = '1.3.4'
|
||||
|
||||
Reference in New Issue
Block a user