Take an existing GitHub API Python Websocket project and get it in operation on my computer.
$250-750 USD
已完成
已发布超过 3 年前
$250-750 USD
货到付款
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.
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.
This problem can be resolved by properly creating the web socket object and utilizing its functions in addition to importing other Python libraries to produce the output.
I can immediately share with you how to properly do that and I can ensure you the success of the operation.
I can finish this in a very short time.
I hope I hear from you soon
Looking forward for your message!
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 we finish the work very fast .
Check my portfolio of work .
I m glad to work with you .
so,you can choose as a trusted worker .
we will discuss further details in chat .
looking forward to hearing from you soon.
thankyou,
yashrao