Whispertrades

Bot Variables

Updated Jul 11, 2026

GET /v1/bots/variables

Get a single bot variable or a list of all variables Auth Required: Read Variables

Path parameters

number string Unique identifier for a specific variable to retrieve. If omitted, all variables will be returned

Header parameters

API Token string required Token from your Whispertrades account
curl -X GET "https://api.whispertrades.com/v1/bots/variables" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "API Token: example"
const response = await fetch("https://api.whispertrades.com/v1/bots/variables", {
  method: "GET",
  headers: {
      "Authorization": "Bearer YOUR_TOKEN",
      "API Token": "example"
  }
});
const data = await response.json();
console.log(data);
fetch("https://api.whispertrades.com/v1/bots/variables", {
  method: "GET",
  headers: {
      "Authorization": "Bearer YOUR_TOKEN",
      "API Token": "example"
  }
})
  .then((response) => response.json())
  .then((data) => console.log(data));
import requests

response = requests.get(
    "https://api.whispertrades.com/v1/bots/variables",
    headers={
        "Authorization": "Bearer YOUR_TOKEN",
        "API Token": "example"
    },
)
data = response.json()
print(data)

Response · 200

{
    "success": true,
    "message": "",
    "data": {
        "number": "JFJAPMKYXEU",
        "name": "Long call hedge current profit",
        "bot": "Long call hedge",
        "value": "-5232.50",
        "free_text_value": null,
        "last_updated_at": "2023-10-05T19:10:26.000000Z",
        "conditions": [
            {
                "condition": "Earliest Time of Day",
                "value": "9:45 AM"
            },
        ]
    },
}
PUT /v1/bots/variables

Change a bot variable name or free text value Auth Required: Write Variables

Path parameters

number string required Variable number to update

Header parameters

API Token string required Token from your Whispertrades account
curl -X PUT "https://api.whispertrades.com/v1/bots/variables" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "API Token: example"
const response = await fetch("https://api.whispertrades.com/v1/bots/variables", {
  method: "PUT",
  headers: {
      "Authorization": "Bearer YOUR_TOKEN",
      "API Token": "example"
  }
});
const data = await response.json();
console.log(data);
fetch("https://api.whispertrades.com/v1/bots/variables", {
  method: "PUT",
  headers: {
      "Authorization": "Bearer YOUR_TOKEN",
      "API Token": "example"
  }
})
  .then((response) => response.json())
  .then((data) => console.log(data));
import requests

response = requests.put(
    "https://api.whispertrades.com/v1/bots/variables",
    headers={
        "Authorization": "Bearer YOUR_TOKEN",
        "API Token": "example"
    },
)
data = response.json()
print(data)

Response · 200

{
    "success": true,
    "message": "Variable updated",
    "data": {
        "number": "OFXXAKQZPE",
        "name": "Allow entries",
        "bot": null,
        "value": "Yes",
        "free_text_value": null,
        "last_updated_at": "2023-10-05T19:18:14.000000Z",
        "conditions": []
    }
}

Was this page helpful?