Skip to content

Commit

Permalink
Add get positions function
Browse files Browse the repository at this point in the history
  • Loading branch information
wanth0620 committed Oct 11, 2021
1 parent 93ba094 commit cb4edd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ftx/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def get_all_balances(self) -> Dict:
def get_balances(self) -> Dict:
return self._get("/wallet/balances")

def get_positions(self) -> Dict:
return self._get("/positions")

def send_order(self, **kwargs) -> Dict:
try:
return self._post("/orders", params=kwargs)
Expand Down

0 comments on commit cb4edd3

Please sign in to comment.