Færdiggjort

Take an existing GitHub API Python Websocket project and get it in operation on my computer.

Take an existing GitHub API Python Websocket project and get it in operation on my computer.

Apparently, the programs are all working. Because of my lack of Python knowledge, I just don’t know how to set it up on my system. See below the [login to view URL] from GitHub:

BybitWebsocket Adapter

This is a simple adapter for connecting to Bybit's websocket API.

Installation

pip install bybit-ws

Quickstart

We have implemented all real-time API in the BybitWebsocket library.

Import the official Bybit websocket library and create and object:

from BybitWebsocket import BybitWebsocket

ws = BybitWebsocket(wsURL="wss://[login to view URL]",

api_key=None, api_secret=None)

To access private topics, api_key and api_secret must have been passed.

Using the ws object we can subscribe to websocket topics.

Subscribe to topics & get the response

All topics have a "subscribe" method. Find out more about the different topics and their responses in the documentation of the websocket API.

Notice that if you get an empty list when you try to get data with get_data method, it means the websocket client has not yet receive the data of the topic you want from the server.

# subscribe to topics

ws.subscribe_orderBookL2("BTCUSD")

ws.subscribe_kline("BTCUSD", '1m')

ws.subscribe_order()

ws.subscribe_execution()

ws.subscribe_position()

ws.subscribe_instrument_info('BTCUSD')

ws.subscribe_insurance()

# get responses forever

while(1):

[login to view URL](ws.get_data("[login to view URL]"))

[login to view URL](ws.get_data('kline.BTCUSD.1m'))

[login to view URL](ws.get_data('order'))

[login to view URL](ws.get_data("execution"))

[login to view URL](ws.get_data("position"))

[login to view URL](ws.get_data("[login to view URL]"))

[login to view URL](ws.get_data('[login to view URL]'))

[login to view URL](ws.get_data('[login to view URL]'))

sleep(1) # wait one second before checking for new responses

See a full example detailing all the endpoints in main.py.

I have PyCharm installed on my machine, and I ran the pip install bybit-ws. However, I’m not certain how to Import the official Bybit websocket library and create an object.

Evner: Data Extraction, GitHub

Se mere: python websocket client authentication, websocketd, wscat python, websocket server, websocket.websocketapp python, websocket gui client, curl websocket, python websocket-client vs websockets, python java project responsibilities, metatrader api python, google keyword tool api python, google apps provisioning api python, google python outsourcing project, provisioning api python update account, provisioning api python example, forex api python, python twisted project, google search api python github, google adwords api python github, youtube api python github

Om arbejdsgiveren:
( 0 bedømmelser ) Durban, South Africa

Projekt ID: #26905656

Tildelt til:

EngHassan13

Hello sir, I have gone through your project description and the problem seems to be related to importing the Bybit web socket library and creating an object to communicate with Bybit and receive their trading data. Flere

$250 USD på 1 dag
(0 bedømmelser)
0.0

5 freelancere byder i gennemsnit $472 på dette job

$556 USD in 10 dage
(0 bedømmelser)
0.0
Sawaira112

50, 000 Relevant Skills and Experience Computer course , english langugae course, 1 year experince

$556 USD in 10 dage
(0 bedømmelser)
0.0
Yashrao12

hey sir , I have read your project instructions carefully. I have determinde that I could deliver the work on time . I have a team of 20 member with 4 - 8 year experience and all have expert ,and we work 24 hour so Flere

$500 USD in 8 dage
(0 bedømmelser)
0.0
nguyentamcit

Hello how are you? What github you want to install on your server? I have demo with websocket here: [login to view URL] pls tell me if you have any question thanks

$500 USD in 10 dage
(0 bedømmelser)
0.0