Getting Started
Public Data
Trading
- POSTPlace order
- DELCancel order
- DELCancel multiple orders
- GETGet order
- GETGet orders
- PUTEdit order
- POSTPlace algo order
- DELCancel algo order
- DELCancel multiple algo orders
- DELCancel all orders by symbol
- GETGet algo order
- GETGet algo orders
- PUTEdit algo order
- GETGet transaction by trade id (last 3 months)
- GETGet transaction history (in the past 2 years)
- GETGet trading fee
- POSTCancel all after
Account
Assets
Futures
Spot Margin
Websocket Streams
- Introduction
- Public Market Data
- Private User Data
- Commands
Spot Margin
Get interest history
get spot margin interest history
GET
/
v3
/
spotMargin
/
interestHistory
Copy
curl --request GET \
--url https://api.woox.io/v3/spotMargin/interestHistory \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>' \
--data 'token=<string>' \
--data 'side=<string>' \
--data startTime=123 \
--data endTime=123 \
--data page=123 \
--data size=123
Copy
{
"success": true,
"data": {
"meta": {
"total": 1865,
"recordsPerPage": 25,
"currentPage": 1
},
"rows": [
{
"id": 1649844,
"token": "USDT",
"side": "LOAN",
"status": "SUCCEED",
"quantity": "14896.05440493",
"userId": 10988,
"applicationId": "6400b4f6-d354-4e7f-844f-6153b666e2b6",
"interest": "-0.14896054",
"hourlyRate": "0.00001",
"annualRate": "0.0876",
"createdTime": 1696637410973,
"updatedTime": 1696637410973,
"loanAmount": "14896.05440493"
},
{
"id": 1649752,
"token": "USDT",
"side": "AUTO_REPAY",
"status": "SUCCEED",
"quantity": null,
"userId": 10988,
"applicationId": "6400b4f6-d354-4e7f-844f-6153b666e2b6",
"interest": "2.02039756",
"hourlyRate": null,
"annualRate": null,
"createdTime": 1696637405108,
"updatedTime": 1696637405124,
"loanAmount": null
}
]
},
"timestamp": 1721351502594
}
Limit 10 requests per 60 seconds
Copy
{
"success": true,
"data": {
"meta": {
"total": 1865,
"recordsPerPage": 25,
"currentPage": 1
},
"rows": [
{
"id": 1649844,
"token": "USDT",
"side": "LOAN",
"status": "SUCCEED",
"quantity": "14896.05440493",
"userId": 10988,
"applicationId": "6400b4f6-d354-4e7f-844f-6153b666e2b6",
"interest": "-0.14896054",
"hourlyRate": "0.00001",
"annualRate": "0.0876",
"createdTime": 1696637410973,
"updatedTime": 1696637410973,
"loanAmount": "14896.05440493"
},
{
"id": 1649752,
"token": "USDT",
"side": "AUTO_REPAY",
"status": "SUCCEED",
"quantity": null,
"userId": 10988,
"applicationId": "6400b4f6-d354-4e7f-844f-6153b666e2b6",
"interest": "2.02039756",
"hourlyRate": null,
"annualRate": null,
"createdTime": 1696637405108,
"updatedTime": 1696637405124,
"loanAmount": null
}
]
},
"timestamp": 1721351502594
}
Headers
api-key
Example:
"abcdef123456"
api-signature
Example:
"signaturestring"
api-timestamp
Example:
"1718943200000"
Body
application/x-www-form-urlencoded
The body is of type object
.
Response
200 - application/json
The response is of type object
.
Copy
curl --request GET \
--url https://api.woox.io/v3/spotMargin/interestHistory \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>' \
--data 'token=<string>' \
--data 'side=<string>' \
--data startTime=123 \
--data endTime=123 \
--data page=123 \
--data size=123
Copy
{
"success": true,
"data": {
"meta": {
"total": 1865,
"recordsPerPage": 25,
"currentPage": 1
},
"rows": [
{
"id": 1649844,
"token": "USDT",
"side": "LOAN",
"status": "SUCCEED",
"quantity": "14896.05440493",
"userId": 10988,
"applicationId": "6400b4f6-d354-4e7f-844f-6153b666e2b6",
"interest": "-0.14896054",
"hourlyRate": "0.00001",
"annualRate": "0.0876",
"createdTime": 1696637410973,
"updatedTime": 1696637410973,
"loanAmount": "14896.05440493"
},
{
"id": 1649752,
"token": "USDT",
"side": "AUTO_REPAY",
"status": "SUCCEED",
"quantity": null,
"userId": 10988,
"applicationId": "6400b4f6-d354-4e7f-844f-6153b666e2b6",
"interest": "2.02039756",
"hourlyRate": null,
"annualRate": null,
"createdTime": 1696637405108,
"updatedTime": 1696637405124,
"loanAmount": null
}
]
},
"timestamp": 1721351502594
}
Assistant
Responses are generated using AI and may contain mistakes.