Skip to content

Commit

Permalink
Merge pull request #69 from yusufsahinhamza/fix-wrong-endpoints
Browse files Browse the repository at this point in the history
Fix wrong endpoints and remove duplicates in "account_asset"
  • Loading branch information
dextertd authored Oct 7, 2022
2 parents e80a513 + d749ebb commit 27a9f16
Showing 1 changed file with 4 additions and 46 deletions.
50 changes: 4 additions & 46 deletions pybit/account_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,52 +206,8 @@ def query_deposit_address(self, **kwargs):
"""
return self._submit_request(
method="POST",
path=self.endpoint + "/asset/v1/private/transferable-subs/save",
query=kwargs,
auth=True
)

def enable_universal_transfer(self, **kwargs):
"""
:param kwargs: See
https://bybit-exchange.github.io/docs/account_asset/#t-deposit_addr_info.
:returns: Request results as dictionary.
"""
return self._submit_request(
method="POST",
path=self.endpoint + "/asset/v1/private/transferable-subs/save",
query=kwargs,
auth=True
)

def create_universal_transfer(self, **kwargs):
"""
:param kwargs: See
https://bybit-exchange.github.io/docs/account_asset/#t-deposit_addr_info.
:returns: Request results as dictionary.
"""
return self._submit_request(
method="POST",
path=self.endpoint + "/asset/v1/private/universal/transfer",
query=kwargs,
auth=True
)

def query_universal_transfer_list(self, **kwargs):
"""
Rules: Subaccount can not deposit
:param kwargs: See
https://bybit-exchange.github.io/docs/account_asset/#t-deposit_addr_info.
:returns: Request results as dictionary.
"""
return self._submit_request(
method="POST",
path=self.endpoint + "/asset/v1/private/transferable-subs/save",
method="GET",
path=self.endpoint + "/asset/v1/private/deposit/address",
query=kwargs,
auth=True
)
Expand Down Expand Up @@ -286,6 +242,8 @@ def create_universal_transfer(self, **kwargs):

def query_universal_transfer_list(self, **kwargs):
"""
Rules: Subaccount can not deposit
:param kwargs: See
https://bybit-exchange.github.io/docs/account_asset/#t-queryuniversetransferlist.
:returns: Request results as dictionary.
Expand Down

0 comments on commit 27a9f16

Please sign in to comment.