Added get all exchange pairs endpoint (REST)

This commit is contained in:
itsdeka
2022-01-04 17:58:10 +01:00
parent 64d203d8a8
commit 7fff1038af
2 changed files with 10 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
1.3.4
-) Fixed undefined p_sub issue in subscription_manager.py
-) Added submit cancel all funding orders endpoint (REST)
-) Added get all exchange pairs endpoint (REST)
1.3.3
-) Fixed socket.send() issue (IndexError: deque index out of range)

View File

@@ -370,6 +370,15 @@ class BfxRest:
stats = await self.fetch(endpoint)
return stats
async def get_conf_list_pair_exchange(self):
"""
Get list of available exchange pairs
# Attributes
@return Array [ SYMBOL ]
"""
endpoint = "conf/pub:list:pair:exchange"
pairs = await self.fetch(endpoint)
return pairs
##################################################
# Authenticated Data #