I need to set up a simple, small javascript app to get data from a live stream, and save the streaming data to a Mysql database.
Adapt this demo: [login to view URL]
The demo shows a chart of stock prices using live streaming updates.
The live stream is powered by Lightstreamer. [login to view URL]
Streaming data API: [login to view URL]
I will provide an AWS environment with EC2, RDS and Lightstreamer installed. I will provide you with access to the AWS environment, and authentication for the API.
Summary:
1. Query a URL that I provide to get authentication details (auth details are dynamic rather than static).
2. Use auth details to connect to streaming API using Lightstreamer.
2. Subscribe to market data feed and receive data for: stock prices, account balance, trade confirm, trade open position update.
3. Save data from the feed to Mysql database
Detail:
Github code: [login to view URL]
Here is some code you can use.
I will provide you with a URL to get the latest auth details shown below as variable names starting with STREAMING_API_
function connectToLightstreamer() {
// include the Lightstreamer LightstreamerClient module using [login to view URL]
require(["LightstreamerClient"], function(LightstreamerClient) {
// Instantiate Lightstreamer client instance
lsClient = new LightstreamerClient( STREAMING_API_ENDPOINT );
// Set up login credentials
[login to view URL]( STREAMING_API_ACCOUNT_ID );
[login to view URL]("CST-" + STREAMING_API_CLIENT_TOKEN + "|XST-" + STREAMING_API_XST_TOKEN);
// Add connection event listener callback functions
[login to view URL]({
onListenStart: function() {
[login to view URL]('ListenStart');
},
onStatusChange: function(status) {
[login to view URL]('Lightstreamer connection status:' + status);
}
});
// Connect to Lightstreamer
[login to view URL]();
});
}
function connectToLightstreamer(itemList, fieldList) {
// include the Lightstreamer Subscription module using [login to view URL]
require(["Subscription"], function(Subscription) {
var subscription = new Subscription(
"MERGE",
itemList, // e.g. {"MARKET:[login to view URL]","MARKET:[login to view URL]"}
fieldList // e.g. {"BID", "OFFER"}
);
// Set up Lightstreamer event listener
[login to view URL]({
onSubscription: function() {
[login to view URL]('subscribed');
},
onUnsubscription: function() {
[login to view URL]('unsubscribed');
},
onSubscriptionError: function(code, message) {
[login to view URL]('subscription failure: ' + code + " message: " + message);
},
onItemUpdate: function(updateInfo) {
// Lightstreamer published some data
var epic = [login to view URL]().split(":")[1];
[login to view URL](function(fieldName, fieldPos, value) {
// SAVE THIS DATA TO RDS DATABASE
// Alternatively, if the field is JSON, such as in a confirm message:
var confirm = [login to view URL](value);
[login to view URL]('json: ' + [login to view URL])
}
});
}
});
// Subscribe to Lightstreamer
[login to view URL](subscription);
}
I have rich experience in full stack web development projects. I can write a simple nodejs app for your requirement. I have experience in creating such application using services like firebase, pubnub. I am interested to work in this project. please share more information to start with.
$150 AUD 3 gün içinde
5,0 (11 değerlendirme)
4,5
4,5
7 freelancers are bidding on average $277 AUD for this job
Hey Mate!!
I am API and javascript Developer having more then 5 years experience in API development and API integration. I have working experience with many APIs like Yelp, tumbler, Amazone, Facebook API, Instagram API, Payment gateway API, REST API etc.
Skills: API, PHP, WordPress, HTML5/CSS3/Bootstrap3, JavaScript, Jquery, MySql
I would like to arrange an interview with you for detailed discussion.
Regards!!
@FREELANCER_RECOMMENDED
------------------------------------------------------
Can help... I am a Fullstack Expert in development of web, desktop and mobile apps... Lets Start!
Please start a Discussion with me and we can get started from there...
Please check the past projects I have handled and check my reviews for what employers have to say about my work... Can start right now...
I am a full-stack, front-end engineer with over 12 years of experience. I specialize in the latest web technologies such as HTML5, SASS, Bootstrap, JavaScript, etc., I emphasize quality.
I have extensive experience in backend technologies like Java, MySql, Node, Python & PHP.
I will provide high quality, real-device tested & bug-free code that will work flawlessly on both iOS & Android, and that's my guarantee.
Looking forward to a positive response.
Thanks,
Krishna Sagar
Hi, Thanks for reaching out to me.
I've read your job description carefully to understand what you need clearly.
You seem like you are looking for a senior node developer who can integrate your streaming api to your project.
First of all, I am gonna say that I am the best candidate for this project because I have over 10 years of experience in node.js and have streaming api integration for live music app.
I believe that I am the best candidate for this project and love to work this immediately.
Thanks for your attention.
Cheers.