DELETE Methodu İçin Hashleme
Copy const crypto = require ( 'crypto' );
const secret = 'secret_key' ;
const requestUrl = '/order?market=eos_tl' ;
const hash = crypto .createHmac ( 'sha256' , secret)
.update (requestUrl)
.digest ( 'base64' );
Copy ```powershell
curl --location 'https://api.maximus.team/open-orders' \
--header 'Authorization: {{AUTH_TOKEN}}' \
--header 'X-Signature: {{REQUEST_SIGNATURE}}'
```
Copy {
{
"uid" : "76mkr5no-qe1w-705y-kqgx-4lydg2pjvz8o" ,
"user_uid" : "e39kjg7m-2lwd-o1xe-pd93-y8xz051p4qrv" ,
"amount" : "1" ,
"market" : "eos_tl" ,
"type" : "limit" ,
"status" : "open" ,
"trade" : "buy" ,
"closed_at" : "0001-01-01T00:00:00Z" ,
"created_at" : "2024-07-26T16:00:54Z" ,
"opened_at" : "2024-07-26T16:00:54Z" ,
"condition" : "0" ,
"price" : "19.98" ,
"average" : "0" ,
"remaining_amount" : "1"
},
{
"uid" : "9qrj0oe6-lnpw-1j8q-gm7y-w28v7dm1zk5o" ,
"user_uid" : "e39kjg7m-2lwd-o1xe-pd93-y8xz051p4qrv" ,
"amount" : "1" ,
"market" : "eos_tl" ,
"type" : "limit" ,
"status" : "open" ,
"trade" : "buy" ,
"closed_at" : "0001-01-01T00:00:00Z" ,
"created_at" : "2024-08-02T10:51:00.213997032Z" ,
"opened_at" : "2024-08-02T10:51:00.213997032Z" ,
"condition" : "0" ,
"price" : "19.98" ,
"average" : "0" ,
"remaining_amount" : "1"
}
}