Skip to content

Commit

Permalink
Merge pull request #8 from GeekDougle/master
Browse files Browse the repository at this point in the history
Added support for the Transfers endpoint
  • Loading branch information
mtusman authored May 10, 2021
2 parents 8d9b3de + a31d430 commit 0cf876a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions gemini/private_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,27 @@ def withdraw_to_address(self, currency, address, amount):
}
return self.api_query('/v1/withdraw/{}'.format(currency), payload)

# Transfers API
@typeassert(limit_transfers=int, show_completed_deposit_advances=bool)
def get_past_transfers(self, limit_transfers=None, show_completed_deposit_advances=False):
"""
Returns all the past transfers associated with the API.
Providing a limit_trade is optional.
Whether to display completed deposit advances. False by default. Must be set True to activate. Defaults to False.
Args:
limit_trades(int): Default value is 500
show_completed_deposit_advances(bool): Default value is False
Results:
array: An array of of dicts of the past transfers
"""
payload = {
"limit_transfers": 500 if limit_transfers is None else limit_transfers,
"show_completed_deposit_advances": show_completed_deposit_advances
}
return self.api_query('/v1/transfers', payload)

# HeartBeat API
def revive_hearbeat(self):
"""
Expand Down

0 comments on commit 0cf876a

Please sign in to comment.