Skip to content

Commit 074a385

Browse files
authored
Merge pull request #172 from vegaprotocol/lp-script
Changes so that amend and cancel lp can run independently
2 parents 6b18580 + 060277b commit 074a385

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rest/submit-amend-cancel-liquidity-commitment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
# __get_liquidity_provisions:
108108
# Request liquidity provisions for a party on a Vega network
109109
url = f"{data_node_url_rest}/liquidity/provisions?partyId={pubkey}"
110+
headers = {"Authorization": f"Bearer {token}"}
110111
response = requests.get(url)
111112
helpers.check_response(response)
112113
print("Liquidity Provisions for party:\n{}".format(
@@ -155,6 +156,7 @@
155156
# Sign the transaction with an order submission command
156157
# Hint: Setting propagate to true will also submit to a Vega node
157158
url = f"{wallet_server_url}/api/v1/command/sync"
159+
headers = {"Authorization": f"Bearer {token}"}
158160
response = requests.post(url, headers=headers, json=submission)
159161
helpers.check_response(response)
160162
# :sign_tx_liquidity_amend__

0 commit comments

Comments
 (0)