Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions itbit_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def create_order(self, walletId, side, currency, amount, price, instrument):
def create_order_with_display(self, walletId, side, currency, amount, price, display ,instrument):
path = "/wallets/%s/orders/" % (walletId)
response = self.make_request("POST", path, {'type': 'limit', 'currency': currency, 'side': side, 'amount': amount, 'price': price, 'display': display, 'instrument': instrument})
return response
return response

#returns a specific order by order id
def get_order(self, walletId, orderId):
Expand Down Expand Up @@ -159,8 +159,8 @@ def make_request(self, verb, url, body_dict):

auth_headers = {
'Authorization': self.clientKey + ':' + signature.decode('utf8'),
'X-Auth-Timestamp': timestamp,
'X-Auth-Nonce': nonce,
'X-Auth-Timestamp': str(timestamp),
'X-Auth-Nonce': str(nonce),
'Content-Type': 'application/json'
}

Expand Down