Suoritettu

Python - websocket client to API subscription to save data to mysql

Implement websocket client in python with api subscription to Websocket endpoint as specified

in below definition and save received messages to mysql database.

Websocket endpoint:

wss://[login to view URL]

Channel: live_trades_BTCUSD

Requirements:

- The assignment will be accepted if the client is not disconnectd and runs forever.

- In case client is disconnected it has to reconnect and has to report disconnect error to log.

The mysql table definition has to be provided in DDL.

- The code has to be provided in python and work under version 3.6

API definition:

Live Ticker description:

Channel: live_trades_BTCUSD

[login to view URL]

Live trades example:

[login to view URL]

{"event": "bts:subscribe","data": {"channel": "live_trades_btcusd"}}

Data structure:

id Trade unique ID.

amount Trade amount.

amount_str Trade amount represented in string format.

price Trade price.

price_str Trade price represented in string format.

type Trade type (0 - buy; 1 - sell).

timestamp Trade timestamp.

microtimestamp Trade microtimestamp.

buy_order_id Trade buy order ID.

sell_order_id

Data output:

{"data": {"microtimestamp": "1562518746063052", "amount": 0.0071539899999999998, "buy_order_id": 3698872410, "sell_order_id": 3698855240, "amount_str": "0.00715399", "price_str": "11203.58", "timestamp": "1562518746", "price": 11203.58, "type": 0, "id": 93107634}, "event": "trade", "channel": "live_trades_btcusd"}

Testing the data feed:

You can test subscription to undertand correctly using in chrome:

Install Simple websocket client.

In server location url: wss://[login to view URL]

in request enter: {"event": "bts:subscribe","data": {"channel": "live_trades_btcusd"}}

in Message log you will see the data arrive.

Taidot: Python, MySQL

Näytä lisää: facileforms form save data mysql, web crawler save data mysql, ivr save data mysql, flash save data mysql, save data mysql vbnet, can java save data mysql, php script parse email save data mysql, nicedit save data mysql, save data mysql, as3 save data mysql, dojo save data mysql, multiple image upload save data mysql ajax, rss feed save data mysql, adwords api php sync data mysql database, html jquery save data mysql, android save data mysql, facebook connect save data mysql

Tietoa työnantajasta:
( 9 arvostelua ) Bucuresti, Romania

Projektin tunnus: #20243915

Myönnetty käyttäjälle:

Reqem

I will createing this app in 1-5 days. Relevant Skills and Experience I have 4 year exp in building Python appps and 2 year exp in creating websocket apps for cryptocurrency places.

€14 EUR 4 päivässä
(0 Arvostelua)
0.0

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

AlexanderPGR

~~~ Very interested to me! ~~~ Hi, dear! Feel contact me for these kinds of projects. I will provide you the best result on time. I am waiting for your message to have a detail discussion. Thanks.@~@

€50 EUR 7 päivässä
(10 arvostelua)
4.4
love0207

Hi, I read the description of your project thoroughly. I understand your requirements basically, and I have experiences of similar project. I am professional Web app and Mobile App developer, and talented Angular/Nodej Lisää

€19 EUR 7 päivässä
(14 arvostelua)
4.2
ERPGenius

Greetings! I'm a full-stack software developer specializing in modern Web. I have just read your description & project details and I am very interested in your job. I can show you my experience. I am always working wi Lisää

€30 EUR 7 päivässä
(2 arvostelua)
0.6
redincorptech

Dear client I saw your requirements regarding to develop an application for websocket connection from bitstamp exchange. I can develop this application with in a 1 or 2 hours maximum. Because I developed many applica Lisää

€15 EUR 1 päivässä
(0 arvostelua)
0.0