Show Posts
|
Pages: [1]
|
Hello! I would like to introduce a python API to manage websockets to binance! Project: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-apiimport unicorn_binance_websocket_api
ubwa = unicorn_binance_websocket_api.BinanceWebSocketApiManager(exchange="binance.com") ubwa.create_stream(['trade', 'kline_1m'], ['btcusdt', 'bnbbtc', 'ethbtc'])
while True: oldest_data_from_stream_buffer = ubwa.pop_stream_data_from_stream_buffer() if oldest_data_from_stream_buffer: print(oldest_data_from_stream_buffer)
# What are the benefits of the UNICORN Binance WebSocket API? - Fully managed websockets and 100% auto-reconnect! Also handles maintenance windows!
- Streams are processing asynchronous/concurrent (Python asyncio) and each stream is started in a separate thread, so you dont need to deal with asyncio in your code!
- No use of the twisted module, so you can use this lib in a daemonized application (compatible with python-daemon).
- Supports subscribe/unsubscribe on all exchanges! (Take a look to the max supported subscriptions per stream in the endpoint configuration overview!)
- UNICORN Binance WebSocket API respects Binance's API guidelines and protects you from avoidable reconnects and bans.
- Support for multiple private !userData streams with different api_key and api_secret. (example_multiple_userdata_streams.py)
- Pick up the received data from the stream_buffer - if you can not store your data in cause of a temporary technical issue, you can kick back the data to the stream_buffer which stores the receives in the RAM till you are able to process the data in the normal way again. Learn more!
- Use separate stream_buffers for specific streams or users!
- Watch the stream_signal_buffer to receive CONNECT, DISCONNECT and FIRST_RECEIVED_DATA signals about the streams! Learn more!
- Get the received data unchanged as received, as Python dictionary or converted with UnicornFy into well-formed Python dictionaries. Use the output parameter of create_stream() to control the output format.
- Helpful management features like get_binance_api_status(), get_current_receiving_speed(), get_errors_from_endpoints(), get_limit_of_subscriptions_per_stream(), get_request_id(), get_result_by_request_id(), get_results_from_endpoints(), get_stream_buffer_length(), get_stream_info(), get_stream_list(), get_stream_id_by_label(), get_stream_statistic(), get_stream_subscriptions(), get_version(), is_update_availabe(), pop_stream_data_from_stream_buffer(), print_summary(), replace_stream(), set_stream_label(), set_ringbuffer_error_max_size(), subscribe_to_stream(), stop_stream(), stop_manager_with_all_streams(), unsubscribe_from_stream(), wait_till_stream_has_started() and many more! Explore them here.
- Monitor the status of the created BinanceWebSocketApiManager() instance within your code with get_monitoring_status_plain() and specific streams with get_stream_info().
- Nice to use with iPython: "IPython (Interactive Python) is a command shell for interactive computing that offers introspection, rich media, shell syntax, tab completion, and history." (example_interactive_mode.py) iPython
- Also nice to use with the Jupyter Notebook

- Monitoring API service and a check_command for ICINGA/Nagios icinga2-demo
- Excessively tested on Linux, Mac and Windows
Best regards, Oliver
|
|
|
We accept no new candidatures! 
Dear Cloak Community,
We are starting a new round of our twitter campaign.
All participients from the first round (https://bitcointalk.org/index.php?topic=1700637.0) with positiv feedback and keyscore44 can continue with us. Here is the list: https://docs.google.com/spreadsheets/d/1qJgvcGsPcf9ERub2g9sthcImWDRFB7Z03KAeTSuH7X0/edit?usp=sharing Please confirm your new participation with a post in this thread and the words "i confirm my participation".
We have some free slots, so new members can join, how much can join depends of the twitter accounts and there followers.
Who can apply? Your account is crypto related and active.
What do you have to do? You retweet daily 1 tweet you receive per DM. You tweet at least once a week about CLOAKCOIN with the hashtags #cloakcoin #altcoin #bitcoin #fintech #crypto Your tweet must cointain text and an image/video. The best tweet of the week wins 200 CLOAKCOINS!
Add "www.cloakcoin.com" to your twitter profile and use our avatar (http://cloakcoin.com/downloads/120x80_avatar.png) to get 10% more!
The payments will be made every 2nd monday. We pay 0.0000015 BTC per week for every real follower you have when you join this campaign.
How to sign up: Follow https://twitter.com/cloakcoin_promo/ Post your twitter account Post your twitteraudit.com link
Twitter accounts with more than 15% bot followers or less than 500 real follower will not be accepted! Check your twitter audit here: https://www.twitteraudit.com/
Best regards, alice_bob
Team Cloak
|
|
|
 CLOAKGAMES Hallo!
We started a game on Twitter: https://twitter.com/cloakcoin_promo/status/806837551134810112
Here are the rules!
What you have to do: Retweet (RT) the "cloakgame" tweet and post a photo of your monitor with an open cloakcoin wallet that shows more than 100 mature CLOAK and a post-it with your twitter account name. Also add your cloak address for the payout for the case you are one of the two winners. Follow https://twitter.com/cloakcoin_promo to enable us to send you a Direct Message if you have won.
What is NOT allowed: Your twitter account is created in december 2016! You are only able to win if you have made a retweet of this tweet and posted the photo where it's possible to see your name and the wallet with mature cloaks! You are only allowed to post one time. Deleting your post and make a new one is not allowed! If we can not send you a Direct Message on Twitter because you don't follow https://twitter.com/cloakcoin_promo we choose a new winner.
How we identify the 2 winners: The game stops when this countdown is over (12.12.2016 at 0:00 cloakcoin.com server time). Then we count all posts of this tweet up to the time when the countdown stops and exclude the last digit of this value. For example we have 128 posts, we take the 8! Then we go to the first valid post, open it and look at the twitter status nr, if the last digit is 8 we have the first winner. If the last digit is not 8 we open the next valid post until we have the first winner. Then we go to the last valid post, open it and do the same. If this twitter status nr does not end with 8 we go to the next post until we have the second winner.
How the price grows: The price is 200 CLOAK for both winers, but every time we exceed a one hundred boundary of retweets, the price increases by 100 CLOAK. If we have more than 100 RT, the price is 300 CLOAK, more than 200 RT the price is 400 CLOAK and more than 300 RT the price is 500 CLOAKS. More than 500 CLOAK is not possible!
Payout: Monday 12.12.2016. After you received your price, please confirm publicly!
Good luck!
|
|
|
|