curl --request GET \
--url http://localhost:8000/archived-bots/{db_path}/trades \
--header 'Authorization: Basic <encoded-value>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get trade history from a database.
Args: db_path: Full path to the database file limit: Maximum number of trades to return offset: Offset for pagination
Returns: List of trades with pagination info
curl --request GET \
--url http://localhost:8000/archived-bots/{db_path}/trades \
--header 'Authorization: Basic <encoded-value>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Limit number of trades returned
Offset for pagination
Successful Response
Was this page helpful?