Twelve Data/GetQuote

Twelve DataTwelve Data Forex API

GET/quote

Get a Forex quote

Returns quote fields for one Forex currency pair.

Query realtime and historical Forex market data, currency conversion, reference data, and technical indicators; callers connect directly with their own Twelve Data credential.

Request

operationId
GetQuote
Server
https://api.twelvedata.com
Authentication
apiKey

Request parameters

symbol

querystringrequired

Forex currency pair in BASE/QUOTE form, for example EUR/USD.

EUR/USD

interval

queryIntervalEnum

exchange

querystring

Trading venue name returned by the upstream service.

FOREX

mic_code

querystring

mic code field.

mic_code-sample

country

querystring

country field.

country-sample

volume_time_period

queryintegerint64

volume time period field.

9

type

queryTypeEnum

format

queryFormatEnum

delimiter

querystring

delimiter field.

delimiter-sample

prepost

queryboolean

prepost field.

false

eod

queryboolean

eod field.

false

rolling_period

queryintegerint64

rolling period field.

9

dp

queryintegerint64

dp field.

1

timezone

querystring

Timezone used for output timestamps.

UTC

Responses

200

GetQuote_200_responseapplication/json

Request succeeded and returns this Endpoint's JSON payload.

Properties: average_volumechangeclosecurrencydatetimeexchangeextended_changeextended_percent_changeextended_priceextended_timestampfifty_two_weekhighis_market_openlast_quote_atlowmic_codenameopenpercent_changeprevious_closerolling_1d_changerolling_7d_changerolling_changesymboltimestampvolume

400

ApiBadRequestErrorResponseBodyapplication/json

The request parameters are invalid.

Properties: codemessagestatus

401

ApiUnauthorizedErrorResponseBodyapplication/json

The caller credential is missing or invalid.

Properties: codemessagestatus

403

ApiForbiddenErrorResponseBodyapplication/json

The caller plan or permission does not allow this request.

Properties: codemessagestatus

404

ApiNotFoundErrorResponseBodyapplication/json

The requested resource or data does not exist.

Properties: codemessagestatus

414

ApiParameterTooLongErrorResponseBodyapplication/json

The request parameters exceed the service length limit.

Properties: codemessagestatus

429

ApiTooManyRequestsErrorResponseBodyapplication/json

The caller exceeded a service rate or credit limit.

Properties: codemessagestatus

500

ApiInternalServerErrorResponseBodyapplication/json

The upstream service could not complete the request.

Properties: codemessagestatus

{
  "average_volume": "average_volume-sample",
  "change": "change-sample",
  "close": "close-sample",
  "currency": "currency-sample",
  "datetime": "datetime-sample",
  "exchange": "FOREX",
  "extended_change": "extended_change-sample",
  "extended_percent_change": "extended_percent_change-sample"
}