Update Tickers
Update Tickers
POST https://api.finalle.ai/update_tickers
Send a .csv file of tickers
Path Parameters
api_key*
String
Your API key. If the TEST environment API key is provided, then no update will be done to the tickers DB. If the PROD env API key is provided, tickers DB will be updated on success.
Request Body
file*
File (.csv)
A .csv file named tickers.csv. The file must contain a ticker and industrycolumns, where each row contains a ticker name in upper case (e.g. AAPL, TSLA) and the respective ticker's industry.
On success, returns acknowledgment that the file was processed successfully.
Example
For a POST request to the chat endpoint: https://api.finalle.ai/update_tickers?api_key=YOUR_API_KEY&test=yes
With the following body using Content-Type=multipart/form-data:
{
"file": A_VALID_CSV_FILE_NAMED_tickers.csv,
}The output is:
{
"data": "",
"request_id": "YOUR_REQUEST_ID",
"result": "success"
}Invalid values were supplied for the API request.
Example
For a POST request to the chat URL: https://api.finalle.ai/update_tickers
With the following body (Content-Type is multipart/form-data):
{
"wrong_file_key": SOME_FILE.CSV
"api_key": "YOU_API_KEY"
}The output will have 400 response status code with the following response:
{
"result": "fail",
"error": "Bad request: 'file' parameter was not provided",
"request_id": "YOUR_UNIQUE_REQUEST_ID"
}Since the file parameter must have a key named 'file'.
Something went wrong on our server.
The output will have 500 response status code with the following response:
Last updated