Short Interest API
The Short Interest API allows you to retrieve short interest data with various filtering, sorting, pagination, and projection options.
Endpoint
GET /api/short-interest
Query Parameters
The following query parameters are available for customizing the results:
averageDailyVolumeQuantity (Number): Filters the results based on the average daily volume quantity. changePercent (Number): Filters the results based on the change percent. changePreviousNumber (Number): Filters the results based on the change previous number. currentShortPositionQuantity (Number): Filters the results based on the current short position quantity. daysToCoverQuantity (Number): Filters the results based on the days to cover quantity. marketClassCode (String): Filters the results based on the market class code. previousShortPositionQuantity (Number): Filters the results based on the previous short position quantity. settlementDate (String): Filters the results based on the settlement date. symbolCode (String): Filters the results based on the symbol code. page.size (Number): Specifies the number of results per page.
Supported Operators
The filtering parameters support the following operators:
=
Equal to!=
Not equal to>
Greater than<
Less than>=
Greater than or equal to<=
Less than or equal tois
Check if value is a specific valuein
Check if value is in a list of valueslike
Perform a case-sensitive pattern matchilike
Perform a case-insensitive pattern matchcontains
Check if value contains a substringcontainedBy
Check if value is contained by a rangerangeGt
Check if value is greater than a rangerangeGte
Check if value is greater than or equal to a rangerangeLt
Check if value is less than a rangerangeLte
Check if value is less than or equal to a rangerangeAdjacent
Check if value is adjacent to a rangeoverlaps
Check if value overlaps with a rangeor
Perform logical OR on multiple conditions
Request Examples
Example 1: Filter by Symbol Code and Average Daily Volume Quantity
GET /api/short-interest?filter:symbolCode=ABC&filter:averageDailyVolumeQuantity>100000
This example retrieves short interest data where the symbol code is "ABC" and the average daily volume quantity is greater than 100,000.
Example 2: Sort by Change Percent and Paginate
GET /api/short-interest?sort=changePercent&page.size=20&page.number=2
This example retrieves short interest data, sorts the results by change percent, and returns 20 results per page, starting from page number 2.
Response
The response will include the short interest data based on the provided query parameters.
Please note that the response format and data structure will depend on the specific implementation and database used.
Validation
The following validation rules apply to the query parameters:
averageDailyVolumeQuantity: Must be a positive number. changePercent: Must be a number. changePreviousNumber: Must be a number. currentShortPositionQuantity: Must be a positive number. daysToCoverQuantity: Must be a positive number. marketClassCode: Must be a string with a maximum length of 20 characters. previousShortPositionQuantity: Must be a positive number. settlementDate: Must be a string. symbolCode: Must be a string with a maximum length of 20 characters. page.size: Must be a number between 0 and 10000.