Account
Count my latest trades now
POST
/fills/syncRequires a session: Authorization: Bearer <token>Limit: 12 / min per user
Call it after a trade fills. The server reads the user's new fills from Hyperliquid (never from the caller) and updates Points, rank and the leaderboards within seconds. Bursts collapse into one Hyperliquid call; calls share a server-wide budget, and anything skipped is picked up by the 5-minute sync. Opening the app (GET /me) also refreshes a wallet not synced in the last 2 minutes.
Request
curl -X POST 'https://api.slay.money/api/predict/fills/sync' \ -H 'Authorization: Bearer $SLAY_TOKEN'
Responses
200Whether a sync ran, how many new fills, and (when it ran) the fresh Points picture.
syncedbooleanfillsintegerpointsPointsallnumberAll-time Points credited: own Points (×1.2 in any week traded on 4+ days) plus 10% of invited friends' Points.
weeknumberPoints credited this week (weeks start Monday 00:00 UTC), same rules.
rankWeekinteger | nullRank this week, or null with no Points.
200 response
{
"synced": true,
"fills": 2,
"points": {
"all": 563,
"week": 120,
"rankWeek": 1
}
}401No valid session. Sign in again.
401 response
{
"error": "Sign in first"
}