Twelve Data Get Price

0.5 credits/call
ae_twelvedata_get_price

Get the latest available market price for a financial instrument from Twelve Data.

Productivity
0.5 credits/call

Pricing

0.5 credits/call
ConditionCharge
Each call0.5 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
dpintegerNoSpecifies the number of decimal places for floating values. Should be in range [0,11] inclusive5
isinstringConditionalISIN of the instrument. Use a real non-empty identifier; if this instrument is unavailable by ISIN, resolve its ticker symbol first.—
typeenum (American Depositary Receipt | Bond | Bond Fund | Closed-end Fund | Common Stock | Depositary Receipt | Digital Currency | ETF | Exchange-Traded Note | Global Depositary Receipt | Limited Partnership | Mutual Fund | Physical Currency | Preferred Stock | REIT | Right | Structured Product | Trust | Unit | Warrant)NoThe asset class to which the instrument belongs—
cusipstringConditionalCUSIP of the instrument. Use a real non-empty identifier; if this instrument is unavailable by CUSIP, resolve its ticker symbol first.—
formatenum (JSON | CSV)NoValue can be JSON or CSVJSON
symbolstringConditionalTicker symbol of the instrument, for example AAPL, EUR/USD or ETH/BTC. Use a real non-empty symbol; a supported ISIN or CUSIP may be used instead when this endpoint accepts it.—
countrystringNoCountry where instrument is traded, e.g., `United States` or `US`—
exchangestringNoExchange where instrument is traded—
mic_codestringNoMarket Identifier Code (MIC) under ISO 10383 standard—
delimiterstringNoSpecify the delimiter used when downloading the CSV file;

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_twelvedata_get_price' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "dp": 6,
    "symbol": "ADA/USD",
    "type": "Digital Currency"
  }
}'
Response exampleresponse.json
JSON
{
  "price": "0.174300"
}

Guides using this tool

See how this tool fits into real workflows