Copy Trading
Browse public portfolios, follow top-performing leaders, auto-sync positions, and publish your own strategies.
/api/v1/copy-trading/leadersBrowse public portfolio leaders. Paginated and sortable by performance metrics.
Query Parameters
sortBystringoptionalSort field (totalReturn, sharpeRatio, followers). Default: totalReturn.
pagenumberoptionalPage number for pagination.
limitnumberoptionalResults per page (default 20, max 100).
minReturnnumberoptionalMinimum total return filter (e.g., 0.1 for 10%).
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/copy-trading/leaders?sortBy={sortBy}&page={page}&limit={limit}&minReturn={minReturn}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"id": "ldr-abc123...",
"slug": "quantking",
"displayName": "QuantKing",
"bio": "Systematic momentum strategies",
"totalReturn": 0.456,
"sharpeRatio": 2.1,
"followers": 342,
"verified": true,
"publishedAt": "2026-01-15T00:00:00.000Z"
}
],
"meta": { "total": 150, "page": 1, "limit": 20 }
}/api/v1/copy-trading/leaders/:slugReturns detailed profile of a leader including performance history and portfolio allocation.
Path Parameters
slugstringrequiredThe leader's unique slug.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/copy-trading/leaders/{slug}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "ldr-abc123...",
"slug": "quantking",
"displayName": "QuantKing",
"bio": "Systematic momentum strategies",
"totalReturn": 0.456,
"sharpeRatio": 2.1,
"maxDrawdown": -0.08,
"followers": 342,
"verified": true,
"topHoldings": [
{ "symbol": "AAPL", "allocationPct": 15.2 },
{ "symbol": "MSFT", "allocationPct": 12.8 }
],
"monthlyReturns": [
{ "month": "2026-03", "return": 0.032 },
{ "month": "2026-02", "return": 0.018 }
]
}
}/api/v1/copy-trading/followingReturns the list of leaders the authenticated user is currently following.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/copy-trading/following" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"id": "fol-xyz789...",
"leaderProfileId": "ldr-abc123...",
"leaderSlug": "quantking",
"leaderDisplayName": "QuantKing",
"autoSync": true,
"notifications": true,
"followedAt": "2026-03-01T10:00:00.000Z"
}
]
}/api/v1/copy-trading/publishPublish your portfolio as a public leader profile.
Query Parameters
portfolioIdstring (UUID)requiredThe portfolio to publish.
displayNamestringrequiredPublic display name.
biostringoptionalShort bio or strategy description.
slugstringrequiredUnique URL slug for your profile.
Response
200 OKcurl -X POST "https://api.gilito.ai/api/v1/copy-trading/publish?portfolioId={portfolioId}&displayName={displayName}&bio={bio}&slug={slug}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "ldr-new123...",
"slug": "my-strategy",
"displayName": "My Strategy",
"bio": "Momentum-based approach",
"portfolioId": "p1234...",
"publishedAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/copy-trading/publishUnpublish your portfolio. Followers will be notified and auto-sync will stop.
Response
200 OKcurl -X DELETE "https://api.gilito.ai/api/v1/copy-trading/publish" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"status": "unpublished"
}
}/api/v1/copy-trading/followFollow a leader's portfolio. Optionally enable auto-sync and notifications.
Query Parameters
leaderProfileIdstringrequiredThe leader profile ID to follow.
autoSyncbooleanoptionalAutomatically sync positions (default false).
notificationsbooleanoptionalReceive notifications on leader trades (default true).
Response
200 OKcurl -X POST "https://api.gilito.ai/api/v1/copy-trading/follow?leaderProfileId={leaderProfileId}&autoSync={autoSync}¬ifications={notifications}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "fol-xyz789...",
"leaderProfileId": "ldr-abc123...",
"autoSync": false,
"notifications": true,
"followedAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/copy-trading/follow/:idUnfollow a leader.
Path Parameters
idstringrequiredThe follow relationship ID.
Response
200 OKcurl -X DELETE "https://api.gilito.ai/api/v1/copy-trading/follow/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "fol-xyz789...",
"status": "unfollowed"
}
}/api/v1/copy-trading/follow/:id/syncToggle auto-sync for a followed leader.
Path Parameters
idstringrequiredThe follow relationship ID.
Query Parameters
autoSyncbooleanrequiredEnable or disable auto-sync.
Response
200 OKcurl -X PATCH "https://api.gilito.ai/api/v1/copy-trading/follow/{id}/sync?autoSync={autoSync}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "fol-xyz789...",
"autoSync": true,
"updatedAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/copy-trading/leaders/:slug/transactionsReturns verified transactions from a leader's portfolio.
Path Parameters
slugstringrequiredThe leader's unique slug.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/copy-trading/leaders/{slug}/transactions" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"id": "txn-abc123...",
"symbol": "AAPL",
"side": "buy",
"quantity": 50,
"price": 178.50,
"executedAt": "2026-04-03T14:35:00.000Z",
"verified": true
}
]
}/api/v1/copy-trading/strategiesReturns published strategies available for copy trading.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/copy-trading/strategies" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"id": "strat-pub-123...",
"name": "Momentum RSI",
"description": "RSI-based momentum strategy",
"authorSlug": "quantking",
"totalReturn": 0.34,
"sharpeRatio": 1.9,
"publishedAt": "2026-03-01T00:00:00.000Z"
}
]
}/api/v1/copy-trading/strategiesPublish a strategy for others to follow.
Query Parameters
strategyHashstringrequiredThe strategy hash to publish.
namestringrequiredDisplay name for the strategy.
descriptionstringoptionalStrategy description.
Response
200 OKcurl -X POST "https://api.gilito.ai/api/v1/copy-trading/strategies?strategyHash={strategyHash}&name={name}&description={description}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "strat-pub-456...",
"strategyHash": "abc123...",
"name": "Momentum RSI",
"description": "RSI-based momentum strategy",
"publishedAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/copy-trading/strategies/:idUnpublish a strategy.
Path Parameters
idstringrequiredThe published strategy ID.
Response
200 OKcurl -X DELETE "https://api.gilito.ai/api/v1/copy-trading/strategies/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "strat-pub-456...",
"status": "unpublished"
}
}