Twelve Data/GetTimeSeriesStochF

Preview only · details below

Twelve DataTwelve Data Forex API

GET/stochf

Calculate the STOCHF Forex technical indicator

Calculates the STOCHF technical indicator from a Forex pair time series such as EUR/USD.

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
GetTimeSeriesStochF
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

queryIntervalEnumrequired

outputsize

queryintegerint64

Number of data points to return.

2

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

timezone

querystring

Timezone used for output timestamps.

UTC

start_date

querystring

Start date or time of a requested range.

2025-01-01

end_date

querystring

End date or time of a requested range.

2025-01-02

date

querystring

Date used for the query or conversion.

2025-01-02

order

queryOrderEnum

prepost

queryboolean

prepost field.

false

format

queryFormatEnum

delimiter

querystring

delimiter field.

delimiter-sample

dp

queryintegerint64

dp field.

1

previous_close

queryboolean

Previous closing price.

false

adjust

queryAdjustEnum

fast_k_period

queryintegerint64

Configuration value for the technical indicator: fast k period.

9

fast_d_period

queryintegerint64

Configuration value for the technical indicator: fast d period.

9

fast_dma_type

queryMaTypeEnum

include_ohlc

queryboolean

include ohlc field.

false

Responses

200

GetTimeSeriesStochF_200_responseapplication/json

Request succeeded and returns this Endpoint's JSON payload.

Properties: metastatusvalues

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

{
  "meta": {},
  "status": "ok",
  "values": {
    "close": "close-sample",
    "datetime": "datetime-sample",
    "fast_d": "fast_d-sample",
    "fast_k": "fast_k-sample",
    "high": "high-sample",
    "low": "low-sample",
    "open": "open-sample",
    "volume": "volume-sample"
  }
}