Coder Social home page Coder Social logo

thefourgreaterrors / alpha-rptr Goto Github PK

View Code? Open in Web Editor NEW
420.0 16.0 83.0 1.39 MB

A trading bot for automated algorithmic trading on Binance Futures, Bybit, BitMEX and FTX written in python.

License: MIT License

Dockerfile 0.09% Shell 0.35% Python 94.93% HTML 0.63% CSS 1.34% JavaScript 2.47% Jupyter Notebook 0.20%
algorithmic-trading crypto cryptocurrency trading-bot trading-systems quantitative-trading bitmex binance binance-futures bot

alpha-rptr's People

Contributors

praveenbm5 avatar thefourgreaterrors avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alpha-rptr's Issues

AttributeError: 'BinanceFutures' object has no attribute 'ws'

Hi, I have Futures, Reading and European Options activated on my Binance API Key and also I've got it unresticted mode, its only for my IP address. Please help I have no idea what's wrong.
python main.py --demo --account binanceaccount1 --exchange binance --pair ZENUSDT --strategy Sample

INFO - Bot Mode : Trade INFO - pair: ZENUSDT INFO - timeframes: ['15m'] Traceback (most recent call last): File "main.py", line 38, in <module> bot.run() ... File "binance_futures_api.py", line 268, in _handle_response raise BinanceAPIException(self.response) src.exchange.binance_futures.exceptions.BinanceAPIException: APIError(code=-2015): Invalid API-key, IP, or permissions for action, request ip: XXX.XXX.XXX.XXX INFO - Stopping Bot Exception ignored in: <function Bot.__del__ at 0x16a1676d0> ... AttributeError: 'BinanceFutures' object has no attribute 'ws'

Please help me! After starting the program, it works until the purchase is made, and then it returns an error. python main.py --account binanceaccount1 --exchange binance --pair BTCUSDT --strategy Sample

2020-09-12 17:56:05,657 - INFO - pos_size: 0.0
2020-09-12 17:56:06,235 - ERROR - An error occurred. APIError(code=-1111): Precision is over the maximum defined for this asset.
2020-09-12 17:56:06,235 - ERROR - Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures.py", line 778, in __update_ohlcv
self.strategy(open, close, high, low, volume)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\strategy.py", line 299, in strategy
self.exchange.entry("Long", True, lot/20)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures.py", line 444, in entry
self.order(id, long, ord_qty, limit, stop, post_only, reduce_only, trailing_stop, activationPrice, when)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures.py", line 477, in order
self.__new_order(ord_id, side, ord_qty, limit, stop, post_only, reduce_only, trailing_stop, activationPrice)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures.py", line 375, in _new_order
retry(lambda: self.client.futures_create_order(symbol=self.pair, type=ord_type, newClientOrderId=ord_id,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src_init
.py", line 119, in retry_binance_futures
ret, res = func()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures.py", line 376, in
side=side, quantity=ord_qty))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures_api.py", line 393, in futures_create_order
return self._request_futures_api('post', 'order', True, data=params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures_api.py", line 220, in _request_futures_api
return self._request(method, uri, signed, True, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures_api.py", line 195, in _request
return self._handle_response()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\MARZA\alpha-rptr-master\src\binance_futures_api.py", line 229, in _handle_response
raise BinanceAPIException(self.response)
src.exceptions.BinanceAPIException: APIError(code=-1111): Precision is over the maximum defined for this asset.

pycharm

hi
can you help me how can ı run with pycharm

Bot has an error at start

File "/home/xxxxx/alpha-rptr/main.py", line 38, in
bot.run()
File "/home/xxxxx/alpha-rptr/src/bot.py", line 275, in run
self.exchange.show_result()
TypeError: Bybit.show_result() missing 1 required positional argument: 'plot

Bug Error

when I tryed to start bot by command - python3 main.py --account binanceaccount1 --exchange binance --pair BTCUSDT --strategy Doten

Is showing callback error

2021-06-14 14:31:28,628 - ERROR - error from callback <bound method BinanceFuturesWs.__on_message of <src.binance_futures_websocket.BinanceFuturesWs object at 0x762c2351c0>>: __on_message() missing 1 required positional argument: 'message'

Symbol not found: _TA_ACOS

need help. I'm having this error

lib/python3.8/site-packages/talib/_ta_lib.cpython-38-darwin.so, 2): Symbol not found: _TA_ACOS

thanks

Str is not callable

Bot has launched, shows account balance but after that, at line 942 (binance futures), (ohlcv update)
Error : Str is not callable

help !

Traceback (most recent call last):
File "main.py", line 8, in
from src.factory import BotFactory
File "/root/ta-lib/alpha-rptr/src/init.py", line 252
def notify(message: object, fileName: object = None) -> object:
^
SyntaxError: invalid syntax

thx u !

Exchange: FTX

Hey buddy, this is an awesome project! Great stuff and thanks for sharing this open-source.
Are you considering adding FTX? In terms of liquidity, innovations, plenty of a pairs to trade and the community FTX is really overtaking Bitmex...

I would buy you a beer :)

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.