Skip to content

Commit

Permalink
response callback (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipao-mx authored and ricardo8990 committed Feb 5, 2019
1 parent 9b3fee6 commit 8a3e20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arcusd/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ class CallbackHelper:

@classmethod
def send_op_result(cls, op_info: OpInfo):
requests.post(
resp = requests.post(
ARCUSD_CALLBACK_URL,
data=json.dumps(op_info, cls=ContractEncoder),
headers={
'Content-Type': 'application/json',
'Authorization': auth_header(ARCUSD_CALLBACK_API_KEY,
ARCUSD_CALLBACK_SECRET)
})
return resp.json()

0 comments on commit 8a3e20f

Please sign in to comment.