Skip to main content

Market Cap

The following endpoints retrieve the current market capitalization of a stock.


Market Cap

Returns the Market capitalization 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/market_cap?date_from=2023-01-01&date_to=2023-01-05' \
-H 'accept: application/json' \
-H "Authorization: Bearer $YUKKA_TOKEN"

Return type

McapResponse

Example Response

{"exchange_code":"US","exchange_name":"USA Stocks","currency":"USD","ticker":"AAPL.US","market_cap":2893452000000.0,"entity_info":{"type":"company","alpha_id":"apple","compound_key":"company:apple"}}

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-

Mcap 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/market_cap_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

McapItemizedResponse

Example Response

{"market_cap_itemized":[{"exchange_code":"US","exchange_name":"USA Stocks","currency":"USD","ticker":"AAPL.US","market_cap":2893452000000.0,"entity_info":{"type":"company","alpha_id":"apple","compound_key":"company:apple"}},{"exchange_code":"XETRA","exchange_name":"XETRA Exchange","currency":"EUR","ticker":"SAP.XETRA","market_cap":143672475648.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-