Back

Docs /

Getting Started

Performance

US Market Server

Forex Server

Crypto Server

CFD Indices Server

CFD ETFs Server

Crypto Market Server




Connect to Your Server

Streaming real-time data requires a connection with your platform/server. You need to login your Moon Dashboard and then in the WebSocket section you can find your unique Crypto Server address.

wss://abcd1234.finage.ws:6000/?token=YOUR_SOCKET_KEY


wss://{your_address_key}.finage.ws:{ your_server_port }/?token=YOUR_SOCKET_KEY


This is your unique address. You can connect to your private server by using this address.

Subscribe to Crypto Market Symbol

After the connection, you need to create a subscription.

{"action": "subscribe", "symbols": "BTCUSD"}


this command will create a real-time BTCUSD subscription. If the symbol exists, you will get the data as JSON in real-time.

You can create more than one subscriptions. You can just send another subscription command or use it like given below;

{"action": "subscribe", "symbols": "BTCUSD, XRPUSD"}


Response

After the subscriptions, you will get a response like given below.
{
  "s": "BTCUSD",
  "p": "49026.24000000",
  "q": "0.05309400",
  "t": 1614870855206
}
Did not you like the parameters or the response ? You can simply edit it. For example, you can change the symbol to s or sym.

Response Parameters

  • s
    : Symbol of the crypto.
  • p
    : Last price.
  • q
    : Quantity of the trade
  • t
    : Timestamp [MS]

Unsubscribe to Crypto Market Symbol

You can unsubscribe to the symbol.

{"action": "unsubscribe", "symbols": "BTCUSD"}


this command will remove the symbol from the response.

Request a consultation

Blog

The Importance of Security in Crypto Trading

While it has been in existence for 15 years, cryptocurrency's popularity reached its peak in the 2020s. And despite the recent turbulence, the potential still attracts investors and users. If the space keeps building up, more opportunities will open for said investors. Unfortunately, with honest p

Cryptocurrency Trends: the Future of Digital Assets

With the value of coins at an all-time high, it may be a sign that crypto is making its comeback. With innovations popping up, there are more uses for this tool. This can be partly attributed to the rise in blockchain technology. The need for digital assets has increased with more companies lookin

Read more

Please note that all data provided under Finage and on this website, including the prices displayed on the ticker and charts pages, are not necessarily real-time or accurate. They are strictly intended for informational purposes and should not be relied upon for investing or trading decisions. Redistribution of the information displayed on or provided by Finage is strictly prohibited. Please be aware that the data types offered are not sourced directly or indirectly from any exchanges, but rather from over-the-counter, peer-to-peer, and market makers. Therefore, the prices may not be accurate and could differ from the actual market prices. We want to emphasize that we are not liable for any trading or investing losses that you may incur. By using the data, charts, or any related information, you accept all responsibility for any risks involved. Finage will not accept any liability for losses or damages arising from the use of our data or related services. By accessing our website or using our services, all users/visitors are deemed to have accepted these conditions.

Finage LTD 2024

Copyright