Daily realized P&L (test)
curl --request GET \
--url https://api.bullionwale.com/api/trading/test/v1/pnl/daily \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.bullionwale.com/api/trading/test/v1/pnl/daily"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"days": [
{
"closed_orders": 123,
"date": "<string>",
"realized_pnl": "<string>"
}
],
"environment": "<string>",
"from": "<string>",
"realized_pnl": "<string>",
"to": "<string>"
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}Profit & loss
Daily realized P&L (test)
Available on request. Ask the Bullionwale desk to turn on API access for your account and issue a test key. Test orders are simulated; nothing is booked.
Realized P&L per IST day, in the same shape as production. Always zero on test (test orders are never closed).
Daily realized P&L (test)
curl --request GET \
--url https://api.bullionwale.com/api/trading/test/v1/pnl/daily \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.bullionwale.com/api/trading/test/v1/pnl/daily"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"days": [
{
"closed_orders": 123,
"date": "<string>",
"realized_pnl": "<string>"
}
],
"environment": "<string>",
"from": "<string>",
"realized_pnl": "<string>",
"to": "<string>"
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Query Parameters
First IST day included; default: 29 days before to.
Last IST day included; default: today (IST).