Realized P&L (test)
curl --request GET \
--url https://api.bullionwale.com/api/trading/test/v1/pnl \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.bullionwale.com/api/trading/test/v1/pnl"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"by_metal": {},
"closed_orders": 123,
"environment": "<string>",
"from": "<string>",
"realized_pnl": "<string>",
"symbols": [
{
"closed_orders": 123,
"metal": "<string>",
"realized_pnl": "<string>",
"symbol_code": "<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
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 in the same shape as production. Test orders are simulated fills that are never closed, so test realized P&L is always zero.
Realized P&L (test)
curl --request GET \
--url https://api.bullionwale.com/api/trading/test/v1/pnl \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.bullionwale.com/api/trading/test/v1/pnl"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"by_metal": {},
"closed_orders": 123,
"environment": "<string>",
"from": "<string>",
"realized_pnl": "<string>",
"symbols": [
{
"closed_orders": 123,
"metal": "<string>",
"realized_pnl": "<string>",
"symbol_code": "<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 (YYYY-MM-DD) included.
Last IST day (YYYY-MM-DD) included.
Response
Successful Response
Realized P&L per metal (gold, silver).
Show child attributes
Show child attributes
First IST day included, or null.
Total realized P&L in rupees, 2 decimals.
Per symbol, only symbols with a closed order.
Show child attributes
Show child attributes
Last IST day included, or null.