Coder Social home page Coder Social logo

eppenga / sunflow-cryptobot Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 407 KB

Trailing Buy and Sell Cryptobot for Bybit in real time via Websockets. Includes technical analysis, multiple intervals, order combination, grids, automatic reconnect and error handling.

License: MIT License

Python 100.00%
bybit cryptobot technical-analysis trailing websocket trailing-buy trailing-sell

sunflow-cryptobot's People

Contributors

cyberjunky avatar eppenga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cyberjunky

sunflow-cryptobot's Issues

how run it, i get error this

i get error when run : File "sunflow.py", line 8, in
from pybit.unified_trading import WebSocket
File "/usr/local/lib/python3.8/dist-packages/pybit/unified_trading.py", line 7, in
from ._v5_misc import MiscHTTP
File "/usr/local/lib/python3.8/dist-packages/pybit/_v5_misc.py", line 1, in
from ._http_manager import _V5HTTPManager
File "/usr/local/lib/python3.8/dist-packages/pybit/_http_manager.py", line 62, in
class _V5HTTPManager:
File "/usr/local/lib/python3.8/dist-packages/pybit/_http_manager.py", line 75, in _V5HTTPManager
retry_codes: defaultdict[dict] = field(

whats wrong in my setup?

After placing a buy order, order cannot be found.

Trying out your code -with almost default config- (apart from API keys of course)

I get below error when a buy is done (which succeeded on the exchange)
Could this be a Non-UTA compatibility issue (i'm still on old Bybit account format).
Or maybe a timing issue (trying to fetch faster than created?)
Still trying to understand where what is done in trying to find the cause.

2024-04-21 14:29:15.69 | OPUSDT: Sunflow: handle_kline: Buy matrix (3m): TA-1 1m: 0.5 (Buy), TA-2 3m: -0.5 (Buy), Spread: 0% (Buy), BUY!

2024-04-21 14:29:15.69 | OPUSDT: Orders: get_info: session: get_instruments_info

2024-04-21 14:29:15.95 | OPUSDT: Preload: get_info: Instrument info loaded!

2024-04-21 14:29:15.95 | OPUSDT: Orders: buy: *** BUY BUY BUY! ***

2024-04-21 14:29:15.95 | OPUSDT: Orders: buy: session: place_order

2024-04-21 14:29:16.23 | OPUSDT: Orders: history: session: get_open_orders

2024-04-21 14:29:16.46 | OPUSDT: Defs: log_error: Displaying exception:

2024-04-21 14:29:16.46 | OPUSDT: Order does not exist. (ErrCode: 170213) (ErrTime: 14:29:16).
Request → GET https://api.bybit.com/v5/order/realtime: category=spot&orderId=1669112842430830841.

2024-04-21 14:29:16.46 | OPUSDT: Defs: error: *** Termination program, error to severe! ***

2024-04-21 14:29:16.46 | OPUSDT: Order does not exist. (ErrCode: 170213) (ErrTime: 14:29:16).
Request → GET https://api.bybit.com/v5/order/realtime: category=spot&orderId=1669112842430830841.```

Some practical questions

Did you back test to select best symbols and optimize/find good settings somehow?
I consider running USDC symbols instead of USDT (only the ones with biggest daily volume) since they don't have trading fees.
But didn't look into detail yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.