Skip to main content

Trading volume

The following endpoints retrieve daily trading volume of a stock.


Trading Volume Ts

Returns the Trading volume timeseries of a stock

Examples

Note: If you are using Windows, adjust the syntax:

  • Replace line breaks (\) with caret (^).
  • Use double quotes (") instead of single quotes (').
curl -X 'GET' \
'https://quant.api.yukkalab.com/trading/company/apple/trading_volume_ts?date_from=2023-01-01&date_to=2023-01-05' \
-H 'accept: application/json' \
-H "Authorization: Bearer $YUKKA_TOKEN"

Example Response

{"exchange_code":"US","exchange_name":"USA Stocks","currency":"USD","ticker":"AAPL.US","trading_volume_ts":[{"date":"2023-01-03","trading_volume":112117504.0},{"date":"2023-01-04","trading_volume":89113600.0}],"entity_info":{"type":"company","alpha_id":"apple","compound_key":"company:apple"}}

Return type

TradingVolumeTs

Parameters

NameTypeDescriptionNotes
entity_typestr
entity_idstr
date_fromdateDate to start from when using time ranges[optional]
date_todateDate to end from (exclusively) when using time ranges[optional]
default_time_backstrDefault period of time that is used when no end date is supplied[optional][default to 1w;]

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful Response-
422Validation Error-

Trading Volume Ts Itemized

Returns the Stock price timeseries of a stock

Examples

Note: If you are using Windows, adjust the syntax:

  • Replace line breaks (\) with caret (^).
  • Use double quotes (") instead of single quotes (').
curl -X 'POST' \
'https://quant.api.yukkalab.com/trading/portfolio/trading_volume_ts_itemized?date_from=2023-01-01&date_to=2023-01-05' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $YUKKA_TOKEN" \
-d '["company:apple", "company:sap"]'

Return type

TradingVolumeTsItemizedResponse

Example Response

{"trading_volume_ts_itemized":[{"exchange_code":"US","exchange_name":"USA Stocks","currency":"USD","ticker":"AAPL.US","trading_volume_ts":[{"date":"2023-01-03","trading_volume":112117504.0},{"date":"2023-01-04","trading_volume":89113600.0}],"entity_info":{"type":"company","alpha_id":"apple","compound_key":"company:apple"}},{"exchange_code":"XETRA","exchange_name":"XETRA Exchange","currency":"EUR","ticker":"SAP.XETRA","trading_volume_ts":[{"date":"2023-01-02","trading_volume":923508.0},{"date":"2023-01-03","trading_volume":1462210.0},{"date":"2023-01-04","trading_volume":1651526.0}],"entity_info":{"type":"company","alpha_id":"sap","compound_key":"company:sap"}}]}

Parameters

NameTypeDescriptionNotes
request_bodyList[str]
date_fromdateDate to start from when using time ranges[optional]
date_todateDate to end from (exclusively) when using time ranges[optional]
default_time_backstrDefault period of time that is used when no end date is supplied[optional][default to 1w;]

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful Response-
422Validation Error-