API Reference
Fetch your trades, signals, and broker accounts programmatically. Push new trades from your bot or TradingView. Stable v1 surface โ we'll never break a working integration without a `/v2` migration path.
Quick start
Mint an API key
Open /account โ API Keys tab โ click Create key. Choose a name (e.g. "TradingView webhook") and scopes (read or read+write). The plaintext key is shown once โ store it immediately.
Authenticate every request
Send the key in the Authorization: Bearer header on every request. Don't put it in URL params, don't commit it to git, don't ship it in your frontend bundle.
Try a request
curl -H "Authorization: Bearer $TJP_API_KEY" \
https://tradejournalpro.net/api/v1/meConventions
- โข Base URL:
https://tradejournalpro.net - โข All responses are JSON.
- โข Success returns
{ "ok": true, ... }; errors return{ "error": "..." }with an HTTP 4xx/5xx code. - โข Rate limit: 60 requests / minute / key. Exceeding returns 429.
- โข read scope can list and fetch. write scope can create resources.
- โข Timestamps are ISO 8601 UTC. Dates are YYYY-MM-DD.
Endpoints
/api/v1/meReturns the authenticated user's profile and plan.
Example request
curl -H "Authorization: Bearer $TJP_API_KEY" \
https://tradejournalpro.net/api/v1/meExample response
{
"ok": true,
"user": {
"id": "user_2abc...",
"email": "trader@example.com",
"plan": "pro",
"plan_expires_at": "2026-12-31T23:59:59Z"
}
}/api/v1/tradesList your trades. Sorted newest first.
Parameters
limitint (1-500, default 100)fromISO datetoISO datepairstring โ e.g. XAUUSD
Example request
curl -H "Authorization: Bearer $TJP_API_KEY" \
"https://tradejournalpro.net/api/v1/trades?limit=50&pair=XAUUSD"/api/v1/tradesCreate a trade โ useful for TradingView webhook integrations or custom bots.
Parameters
date*YYYY-MM-DDpair*string (e.g. XAUUSD)direction*BUY | SELL | LONG | SHORTentry_price*numberexit_price*numberstop_loss*numbertake_profit*numberlot_size*numberpnl*numberrisk_reward*numberoutcome*WIN | LOSS | BREAKEVENsession*LONDON | NY | ASIA | OTHERstrategystring (optional)notesstring (optional)
Example request
curl -X POST \
-H "Authorization: Bearer $TJP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"date":"2026-05-19", "pair":"XAUUSD", "direction":"BUY",
"entry_price":2342.50, "exit_price":2355.00,
"stop_loss":2330.00, "take_profit":2355.00,
"lot_size":0.10, "pnl":125.00, "risk_reward":1.0,
"outcome":"WIN", "session":"LONDON"
}' \
https://tradejournalpro.net/api/v1/trades/api/v1/signalsList parsed signals received by your account.
Parameters
limitint (1-500, default 100)statusstring โ pending, executed, ignored, win_rate_blocked, โฆpairstringsinceISO timestamp
Example request
curl -H "Authorization: Bearer $TJP_API_KEY" \
"https://tradejournalpro.net/api/v1/signals?status=executed&limit=20"/api/v1/accountsList your broker accounts (MT4/MT5/cTrader cloud + EA + crypto exchanges).
Example request
curl -H "Authorization: Bearer $TJP_API_KEY" \
https://tradejournalpro.net/api/v1/accountsError codes
400Bad request โ missing or malformed body401Missing, malformed, invalid, or revoked API key402Pro plan required (e.g. write scope, or signal copier endpoints)403API key doesn't have the required scope404Resource not found, or doesn't belong to your account429Rate limit (60/min/key)500Server error โ retry with exponential backoffOutbound webhooks are coming next.
Right now this is a read+write REST API. Real-time outbound webhooks for new signals / executed trades / closed positions ship next. Email islamahmed9717@gmail.com if you need early access.