Socket version 3 improve performance and prices accurace.
*) Support 270 Fx and 200 Crypto
*) Ask and Bid price added
*) Support 5 digitis price
*) Support Volume and Spread
Before Socket Api, all developers were sending request every second on our server to get latest price. But now we introduce Socket API, Socket.io Is a JS library that helps you to connect with our server on realtime connection, Socket connection will reduce latency 5 minutes to 1 seconds.
Real time prices support around ~400 Forex currency and 200+ Crypto currency. Download supported list in excel file Support List
If you have no idea about Socket.io Please read here. Documentaion
To use socket.io you need a little knowledge about JS, We allow socket connection from Server to Server AND Client Browser to our Server.
Note: Market closed on saturday and sunday, so you will not see any price changes
If you want to get all real time pricing on your browser to show to your visitors. No special installation you need.
All guide are mention in socket_browser.js file.
Download Simple Socket Code and run index.html file in browser
OR Check Example Here
<script src="socket.io.js"></script>
<script>
var api_key = 'API_KEY'; // Enter Your API KEY
var currency_ids = '1,2,3'; // Your FX currency multiple IDs
// socket connection function
function socket_connection(){
// Connection
var socket = io.connect("wss://fcsapi.com",{transports: ['websocket']});
// Verify Your API key on server
socket.emit('heartbeat', api_key);
// Connect Ids on server
socket.emit('real_time_join', currency_ids);
socket.on('data_received',function(data){
// always receive latest price here in "data" variable
// data contain : Price, ASK price, BID price
console.log(data);
});
} // function end
// Calling function
socket_connection();
</script>
If you want to get all real-time pricing directly on your server you need little knowledge about "JS", "Nodejs" and "cmd in windows OR terminal in Linux".
You need to install Nodejs on your windows/Linux Server, Create empty project folder, and run our server.js file in CMD/terminal.
Download server.js File
If you have no idea about socket.io then we recommend you to learn "how to build simple Chat app with socket.io" After that, you will learn all skills that you need to run our code. Offical Documentation
"npm install socket.io@2.4.1"
"node server.js"
Normal pricing plan on the pricing page does not include socket access, you need to contact us for socket connection access. Below are two plans for socket connection.
Prices, Market trends and signals are not designed for trading purpose, These signals are only for education or non-commercial purpose use. Data contained in this application/website is not necessarily real-time nor accurate and so prices may not be accurate and may differ from the actual market price, meaning prices are indicative and not appropriate for trading purposes. Therefore we doesn`t bear any responsibility for any trading losses you might incur as a result of using this data.
Latest price minimum refresh rate is 5 Seconds