A complete example
1 Get the API endpoint path:
Order placement url in testing environment: https://zk-test.satori.finance/api/third/hot/order/create2 Get api keys
Key
Value
api key/api_key
st_fq6cvRF4fr5tnKiZfrIntRnLfrwxcXjcfr1y8FR7
api wallet address
0x134eF0CfABEBF9c70eAE631254a6b4736f9b8508
private key/api_secret
0x2bf7cc40cfc5b2a43f60769d31191e82ed33aafb5e75be710271acd40a769564
3.1,Set request parameters
clientOrderId: "{{satTimestamp}}"
isLong: "True"
isMarket: "True"
lever: "20"
matchType: "2"
pairName: "ETH-USD"
positionType: "3"
price: "3100"
quantity: "0.02"
timestamp: "{{satTimestamp}}"3.2 build request string
request string = "clientOrderId=1725693490018&isLong=True&isMarket=True&lever=20&matchType=2&pairName=ETH-USD&positionType=3&price=3100&quantity=0.02×tamp=1725693490018"3.3 Sign the parameter string format
3.4 Assemble the complete request
4 Return results
Last updated