FMP

FMP

Enter

Provides a Real-time feed of forex price and quote data. <br/><br/> Login: { \"event\": \"login\", \"data\": { \"apiKey\": \"your_api_key\" } } <br/> Subscribe:

Forex Web Socket API

Provides a Real-time feed of forex price and quote data.

About Forex Web Socket

A WebSocket is a type of communication protocol that allows for real-time updates, such as forex stock prices and quote data.

Login: { "event": "login", "data": { "apiKey": "your_api_key" } }
Subscribe: { "event": "subscribe", "data": { "ticker": ["eurusd", "cndusd"] } }
Unsubscribe: { "event": "unsubscribe", "data": { "ticker": ["eurusd", "cndusd"] } }

Parameter:
ticker: Subscribe to single ticker by providing as a string, or Subscribe to multiple tickers by providing list of tickers as following example.
data: { "ticker": "eurusd" } or { "ticker": ["eurusd", "cndusd"] }.

Response:
s: Ticker related to the asset.
t: Timestamp
type: Trade type (Communicates what type of price update this is. Will always be 'T' for last trade message, 'Q' for top-of-book update message, and 'B' for trade break messages.)
ap: The current lowest ask price. Only available for Quote updates, null otherwise.
as: The number of shares at the ask price. Only available for Quote updates, null otherwise.
bs: The number shares at the bid price. Only available for Quote updates, null otherwise.
bp: The current highest bid price. Only available for Quote updates, null otherwise.
lp: The last price the last trade was executed at. Only available for Trade and Break updates, null otherwise.
ls: The amount of shares (volume) traded at the last price. Only available for Trade and Break updates, null otherwise.

Endpoint:

wss://forex.financialmodelingprep.com

How it works

How-it-works Signup

Get Started: Sign Up Today!

Begin your data journey by signing up and accessing our API endpoints. Get instant access to a vast array of financial data to power your applications and analyses.

How-it-works Free plan

Dive into Data: Free Plan Access

Explore our free data plan and access a wide range of financial data through our API endpoints. Start integrating real-time data into your applications and projects.

How-it-works Upgrade-Premium

Unlock Premium Data: Upgrade Now!

Upgrade to our premium plan for exclusive access to advanced financial datasets via our API endpoints. Take your analyses to the next level and gain a competitive edge in the market.

Related Forex Web Socket APIs

link-image
Company Web Socket

Provides a Real-time feed of stock price and quote data. Read more

link-image
Crypto Web Socket

Provides a Real-time feed of crypto price and quote data. Read more

Forex Web Socket API FAQs

Unlock Premium Financial Insights Today!

Join Financial Modeling Prep now to access real-time data, in-depth analysis, and personalized insights tailored to your financial goals. Stay ahead of the game and make informed decisions with our comprehensive tools and dedicated support. Sign up today and take the first step towards financial success!

Start Your Journey Now!
FMP

FMP

Financial Modeling Prep API provides real time stock price, company financial statements, major index prices, stock historical data, forex real time rate and cryptocurrencies. Financial Modeling Prep stock price API is in real time, the company reports can be found in quarter or annual format, and goes back 30 years in history.
twitterlinkedinfacebookinstagram
2017-2024 © Financial Modeling Prep