Twelve Data/GetPrice

Twelve DataTwelve Data Forex API

GET/price

Get the latest Forex price

Returns the latest available price 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
GetPrice
Server
https://api.twelvedata.com
Authentication
apiKey

Request parameters

symbol

querystringrequired

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

EUR/USD

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

type

queryTypeEnum

format

queryFormatEnum

delimiter

querystring

delimiter field.

delimiter-sample

prepost

queryboolean

prepost field.

false

dp

queryintegerint64

dp field.

1

Responses

200

GetPrice_200_responseapplication/json

Request succeeded and returns this Endpoint's JSON payload.

Properties: price

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

{
  "price": "price-sample"
}