curl --request GET \
--url 'https://gateway.amana.io/trading/pdt' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/pdt"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/pdt', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"max": 123.45,
"count": 123.45,
"equity": 123.45,
"can_trade": true,
"can_close": true
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Trading
Get day-trader status
Get the user’s Pattern Day Trader (PDT) restriction status for US stocks.
GET
/
trading
/
pdt
curl --request GET \
--url 'https://gateway.amana.io/trading/pdt' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/pdt"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/pdt', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"max": 123.45,
"count": 123.45,
"equity": 123.45,
"can_trade": true,
"can_close": true
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Response
200 Success.
number
Maximum number of day trades allowed within a 5-business-day rolling window before PDT restrictions apply (typically 3).
number
Number of day trades the user has already executed in the current 5-business-day rolling window.
number
The user’s current account equity value in USD. PDT restrictions are lifted automatically when this exceeds $25,000.
boolean
Whether the user is permitted to open new day trades. False when the account is PDT-restricted and equity is below $25,000.
boolean
Whether the user is permitted to close existing positions. Even when can_trade is false, closing positions may still be allowed.
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 401 | Token missing or expired | Log in again or use the refresh token. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 429 / 5xx | Rate limit, or temporary issue on our side | Retry with backoff; contact support if it persists. |
curl --request GET \
--url 'https://gateway.amana.io/trading/pdt' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/pdt"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/pdt', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"max": 123.45,
"count": 123.45,
"equity": 123.45,
"can_trade": true,
"can_close": true
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Last modified on October 8, 2026
