Skip to main content
POST
/
api
/
tradingeconomics
/
markets
/tradingeconomics/markets
curl --request POST \
  --url https://api.anysite.io/api/tradingeconomics/markets \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300
}
'
[
  {
    "symbol": "<string>",
    "@type": "@trading_economics_market_quote",
    "name": "<string>",
    "group": "<string>",
    "unit": "<string>",
    "price": 123,
    "change": 123,
    "change_percent": 123,
    "weekly_percent": 123,
    "monthly_percent": 123,
    "ytd_percent": 123,
    "yoy_percent": 123,
    "date": "<string>",
    "url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
market_type
enum<string>
required

Market to list

Available options:
commodities,
currencies,
stocks,
bonds
count
integer
required

Max number of quotes to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

symbol
string
required
@type
string
default:@trading_economics_market_quote
name
string | null
group
string | null
unit
string | null
price
number | null
change
number | null
change_percent
number | null
weekly_percent
number | null
monthly_percent
number | null
ytd_percent
number | null
yoy_percent
number | null
date
string | null
url
string | null