Longs & Shorts API Endpoints
This document provides an overview of all Longs & Shorts-tagged API endpoints available in the Hyblock Professional API v2.Table of Contents#
Top Trader Metrics#
Top Trader Accounts#
Endpoint: GET /v2/topTraderAccountsDescription: This measures the total number of top trader accounts that are long (or short). Note, top traders do not necessarily mean the best traders or those with the highest profits, but rather classifies top traders as accounts with the top20% in margin. This indicator is similar to Global Long Accounts with the only difference being that it focuses on the top 20% accounts.Summary: Top Trader AccountsTop Trader Positions#
Endpoint: GET /v2/topTraderPositionsDescription: This measures the total number of top trader positions that are long (or short). The key difference here is that instead of looking at accounts, it instead looks at positions.Summary: Top Trader PositionsAnchored Top Trader Accounts#
Endpoint: GET /v2/anchoredTopTraderAccountsDescription: Measures top trader accounts, anchored daily, 4-hourly, or hourly (UTC timezone), capturing the total number of top trader accounts on Binance holding long or short positions. Top trader accounts are defined as those within the top 20% in terms of margin or balance, as classified by Binance, and do not necessarily represent the best traders or those with the highest profits. Each top trader account is counted as a single 'vote' to determine the percentage of accounts that are net long or net short. For example, if there are 100,000 top trader accounts and 60,000 are net long, the top trader accounts long percentage is 60%, and the short percentage is 40%. This endpoint provides insights into the market sentiment and directional bias among Binance's top trader accounts.Summary: Anchored Top Trader AccountsAnchored Top Trader Positions#
Endpoint: GET /v2/anchoredTopTraderPositionsDescription: Measures top trader positions, anchored daily, 4-hourly, or hourly (UTC timezone), capturing the total number of top trader positions on Binance that are long or short. Top trader positions are defined as those within the top 20% in terms of margin or balance, as classified by Binance. Unlike account-based metrics, this endpoint focuses on individual positions (size). For example, if top trader positions hold 100,000positionsand60,000 are long, the top trader positions long percentage is 60%, and the short percentage is 40%. This endpoint provides insights into the market sentiment and directional bias reflected in the positions of Binance's top traders.Summary: Anchored Top Trader Positions
Global Account Metrics#
Global Accounts#
Endpoint: GET /v2/globalAccountsDescription: This measures the total number of accounts that are long or short on given exchange like Binance. So for example, if there are 1million accounts on Binance and 600k of them are net long, then the global accounts long% is 60% (and short% = 40%). Each account gets one 'vote'.Anchored Global Accounts#
Endpoint: GET /v2/anchoredGlobalAccountsDescription: Measures global accounts, anchored daily, 4-hourly, or hourly (UTC timezone), capturing the total number of Binance accounts holding long or short positions. Each account is counted as a single 'vote' to determine the percentage of accounts that are net long or net short. For example, if Binance has 1,000,000 active accounts and 600,000 are net long, the global accounts long percentage is 60%, and the short percentage is 40%. This endpoint provides insights into market sentiment and directional bias among Binance users.Summary: Anchored Global Accounts
Net Long Short Metrics#
Net Long Short#
Endpoint: GET /v2/netLongShortDescription: Estimated net longs and net shorts derived from taker orders & open interest.Net Long Short Delta#
Endpoint: GET /v2/netLongShortDeltaDescription: The difference between Net Longs and Net Shorts.Summary: Net Long Short DeltaAnchored CLSD#
Endpoint: GET /v2/anchoredCLSDDescription: Tracks the cumulative sum of net longs and shorts delta (CLSD) with a daily, 4-hourly, or hourly anchor (UTC timezone), allowing clearer insights into net long versus short positioning trends over time.Anchored CLS#
Endpoint: GET /v2/anchoredCLSDescription: Tracks the cumulative sum of net longs and shorts (CLS) with a daily, 4-hourly, or hourly anchor (UTC timezone), allowing clearer insights into net long versus short positioning trends over time.
Whale & Retail Analysis#
Whale Retail Delta#
Endpoint: GET /v2/whaleRetailDeltaDescription: This is the difference between top trader positions long% ('whales') and global accounts long% ('retail').Summary: Whale Retail DeltaAnchored Whale Retail Delta#
Endpoint: GET /v2/anchoredWhaleRetailDeltaDescription: Measures whale vs retail delta anchored daily, 4-hourly, or hourly (UTC timezone), calculating the difference between the long percentage of top trader positions ('whales') and the long percentage of global accounts ('retail') on Binance. Top trader positions are those within the top 20% in terms of margin or balance, as classified by Binance. For example, if top trader positions have a long percentage of 65% and global accounts have a long percentage of 55%, the whale-retail delta is +10. This endpoint provides insights into the divergence in market sentiment between Binance's top traders positions and the broader retail account base.Summary: Anchored Whale Retail DeltaWhale Position Dominance#
Endpoint: GET /v2/whalePositionDominanceDescription: Evaluates the influence of larger positions in the market compared to broader account-level sentiment among prominent traders. Offers insights into whether larger positions are exerting outsized influence on the market relative to the overall positioning of significant accounts. Serves as a proxy for whale activity, helping users understand how concentrated larger positions are and whether they align with broader sentiment trends.Summary: Whale Position DominanceTrue Retail Long Short#
Endpoint: GET /v2/trueRetailLongShortDescription: This metric shows the percentage of retail accounts in long versus short positions, with each account equally contributing one vote, regardless of position size.Summary: True Retail Long Short
Sentiment Analysis#
Trader Sentiment Gap#
Endpoint: GET /v2/traderSentimentGapDescription: Highlights the sentiment divergence between larger, more influential accounts and smaller retail accounts. Provides a measure of how positioning sentiment differs between these two groups, offering insights into whether they are aligned or moving in opposite directions. Helps identify potential behavioral patterns across different trader segments, revealing shifts in market sentiment that may not be immediately apparent from broader metrics.Summary: Trader Sentiment Gap
Common Parameters#
Most endpoints accept the following common query parameters:exchange: Exchange identifier (e.g., binance_perp_stable)
coin: Cryptocurrency symbol (e.g., BTC, ETH)
timeframe: Time interval (1m, 5m, 15m, 1h, 4h, 1d)
limit: Number of data points to return (default: 50)
startTime: Start timestamp (Unix timestamp)
endTime: End timestamp (Unix timestamp)
sort: Sort order (asc or desc)
Note: Some endpoints may have additional parameters specific to their functionality, such as anchor periods for anchored endpoints.Authentication#
All endpoints require authentication via:API Key: x-api-key header
Rate Limits#
Rate Limit: 600 requests per minute
Burst Limit: 10 concurrent requests
Base URL#
All endpoints are prefixed with /v2/ and should be accessed via the base API URL.
Modified at 2025-12-30 13:10:15