Skip to content

Commit b78cee1

Browse files
authored
Update CLI_Python_Script.mdx
1 parent 6ef1d85 commit b78cee1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

pages/api_integration-guides/CLI_Python_Script.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ This command gets the balance of all of your subaccounts or a specific subaccoun
4343
`python3 v4dydxcli.py testnet.py balance 0`
4444

4545
- Screenshot:
46+
4647
![CLIPythonScript1](../../artifacts/CLIPythonScript1.png)
4748

4849
## Command: buyquantity
@@ -57,6 +58,7 @@ This command buys a specific amount of crypto using MARKET order.
5758
`python3 v4dydxcli.py testnet.py buyquantity BTC-USD 0.001`
5859

5960
- Screenshot:
61+
6062
![CLIPythonScript2](../../artifacts/CLIPythonScript2.png)
6163

6264
## Command: sellquantity
@@ -71,6 +73,7 @@ This command sells a specific amount of crypto using MARKET order.
7173
`python3 v4dydxcli.py testnet.py sellquantity ETH-USD 0.01`
7274

7375
- Screenshot:
76+
7477
![CLIPythonScript3](../../artifacts/CLIPythonScript3.png)
7578

7679
## Command: buyusdc
@@ -85,6 +88,7 @@ This command buys a specific USD-amount of crypto using MARKET order.
8588
`python3 v4dydxcli.py testnet.py buyusdc SOL-USD 200`
8689

8790
- Screenshot:
91+
8892
![CLIPythonScript4](../../artifacts/CLIPythonScript4.png)
8993

9094
## Command: sellusdc
@@ -99,6 +103,7 @@ This command sells a specific USD-amount of crypto using MARKET order.
99103
`python3 v4dydxcli.py testnet.py sellusdc LINK-USD 200`
100104

101105
- Screenshot:
106+
102107
![CLIPythonScript5](../../artifacts/CLIPythonScript5.png)
103108

104109
## Command: positions
@@ -113,6 +118,7 @@ This command shows open positions. If no open positions, it returns nothing. I
113118
`python3 v4dydxcli.py testnet.py positions`
114119

115120
- Screenshot:
121+
116122
![CLIPythonScript6](../../artifacts/CLIPythonScript6.png)
117123

118124
## Command: buyquantitylimit
@@ -127,6 +133,7 @@ This command buys a specific amount of crypto using LIMIT order.
127133
`python3 v4dydxcli.py testnet.py buyquantitylimit BTC-USD 0.002 30000 3600`
128134

129135
- Screenshot:
136+
130137
![CLIPythonScript7](../../artifacts/CLIPythonScript7.png)
131138

132139
## Command: sellquantitylimit
@@ -142,6 +149,7 @@ This command sells a specific amount of crypto using LIMIT order.
142149
`python3 v4dydxcli.py testnet.py sellquantitylimit ETH-USD 0.02 4000 3600`
143150

144151
- Screenshot:
152+
145153
![CLIPythonScript8](../../artifacts/CLIPythonScript8.png)
146154

147155
## Command: getorder
@@ -157,13 +165,15 @@ This command gets the data on an order with a specific client-id. Alternatively
157165
`python3 v4dydxcli.py testnet.py getorder 525086946
158166

159167
- Screenshot:
168+
160169
![CLIPythonScript9](../../artifacts/CLIPythonScript9.png)
161170

162171
- Example
163172

164173
`python3 v4dydxcli.py testnet.py getorder OPEN`
165174

166175
- Screenshot:
176+
167177
![CLIPythonScript10](../../artifacts/CLIPythonScript10.png)
168178

169179
## Command: getorderid
@@ -179,6 +189,7 @@ This command gets the data on an order with a specific order-id.
179189
`python3 v4dydxcli.py testnet.py getorderid e7474df1-669c-5c06-a331-889d91b0306b`
180190

181191
- Screenshot:
192+
182193
![CLIPythonScript11](../../artifacts/CLIPythonScript11.png)
183194

184195
## Command: cancelorder
@@ -193,11 +204,13 @@ This command cancels an order with a specific client-id. Alternatively, you can
193204
`python3 v4dydxcli.py testnet.py cancelorder 314604016`
194205

195206
- Screenshot:
207+
196208
![CLIPythonScript12](../../artifacts/CLIPythonScript12.png)
197209

198210
- Example:
199211

200212
- Screenshot:
213+
201214
`python3 v4dydxcli.py testnet.py cancelorder OPEN`
202215

203216
![CLIPythonScript13](../../artifacts/CLIPythonScript13.png)

0 commit comments

Comments
 (0)