Account
Balance, positions, transfers, and profile management.
My Balance & Positions
POST
/meAuth RequiredReturns the authenticated user's balance, equity, and all open positions.
{
"user_id": "0x1234...abcd",
"username": "trader1",
"balance": "850.00",
"frozen": "50.00",
"total_equity": "1200.00",
"total_unrealized_pl": "32.50",
"positions": {
"elon-musk": {
"long": {
"amount": "5.00",
"entry_price": "80.00",
"current_price": "86.31",
"pl": "31.55",
"pl_ratio": "7.89",
"side": "LONG"
},
"short": null
}
}
}
Update Profile
POST
/user/updateAuth Requireddisplay_namestringNew display name (max 30 chars)
Performance History
GET
/me/performance/historyAuth RequiredReturns equity snapshots over time for charting portfolio performance.
Transfer OPS
POST
/transferAuth RequiredTransfer OPS to another user by username.
to_usernamestringrequiredRecipient username
amountnumberrequiredAmount of OPS to send
Transfer Position
POST
/transfer/assetAuth RequiredTransfer shares of a position to another user.
to_usernamestringrequiredRecipient username
asset_idstringrequiredAsset to transfer
amountnumberrequiredNumber of shares
sidestringrequired"LONG" or "SHORT"
Public Profile
GET
/profile/:usernameReturns a user's public portfolio — positions, volume, and join date. No auth required.