user

Get current user leaderboard rank and stats

Changed on
get/v1/leaderboard/users/me/rank

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/leaderboard/users/me/rank
  • Auth
    HTTP bearer

Query parameters

network'hyperliquid_testnet' | 'hyperliquid_mainnet' | 'hyperliquid_paper'
period'24h' | '7d' | '30d' | 'all'
sortBy'profit' | 'volume' | 'avgRoi' | 'avgReturn' | 'sharpe' | 'winRate' | 'holdTime' | 'name' | 'lastActive' | 'rank' | 'elo' | 'wins' | 'losses' | 'copiers'
sortDirection'asc' | 'desc'

Response

Successful response

rankinteger required

Canonical 1-indexed leaderboard standing by profit descending; independent of the requested sort.

totalinteger required

Total number of ranked users.

offsetinteger required

Zero-indexed position under the requested sort; use this value for pagination.

Changes

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • info

      response property anyOf[LeaderboardMeRank]/stats/accountValue list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property anyOf[LeaderboardMeRank]/stats/avgHoldTimeHours list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property anyOf[LeaderboardMeRank]/stats/avgWinPercent list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property anyOf[LeaderboardMeRank]/stats/elo list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property anyOf[LeaderboardMeRank]/stats/roiPercent list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property anyOf[LeaderboardMeRank]/stats/sharpeRatio list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property anyOf[LeaderboardMeRank]/stats/tradeWinRate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added the new enum value avgReturn to the query request parameter sortBy

    • info

      added the new enum value holdTime to the query request parameter sortBy

    • info

      added the new enum value sharpe to the query request parameter sortBy

    • info

      added the new enum value winRate to the query request parameter sortBy