/immune

automate buy and sell orders on cryptocurrency binance

Primary LanguagePython

AUTOMATE BINANCE BUY/SELL

CONFIG.PY

BINANCE

API_KEY = 'ndSdbjSmijYKsKabl4eue3nBcMuxl1eqcHeuawHro9SgRgXVctvJ0YvoozJl3'
API_SECRET = 'c5dnUZ3sD4G1OzMFzcLUtik7aoUleFzPbikmFmje8nPsUeadeeObTielDeyU'

TWEETER

TWEET=True
C_KEY = 'B16J2YTwEBIsXBBWZO42pC'
C_SECRET = 'R8J9tUI4V0O4BmggOHQuwvHOgRUF1aYFvTlIc010SnD9fuR'
A_T = '126528524811520-VtPzQN6E3NQsLtnJx91P1GwfYmXPwp'
A_T_S = 'rWQfTH3dopJ0NhBkH053AtX9HvWrOZaXIUorVVwd'

TELEGRAM

VAR

PAIR = 'bnbusdt'
PAIR_S = 'usdt'
PAIR_B = "bnb"
QUANTITY = '20' # SHOULD NEVER BE MORE THAN 10% OF WALLET !

ENVIRONMENT

DEBUG = True
TESTNET = False

FUTURE

FUTURE = True
FUTURE_LEVERAGE = '1'
FUTURE_COIN = False (wip)

STRATEGY VAR

STRATEGY_NAME = "sma&rsi" # sma|rsi|orderbook
RISK = 1 safest (1-3)
PERIOD = 2 nb trade to anaylse

POSITION

MARGIN=0.0008

COMMAND

python3 bot.py

IMPORT

  pip install python-binance websocket-client aiofiles pandas asyncio aiocsv numpy matplotlib mplfinance tweepy

TWEETER API | Tweepy API V1.1

Register

Activate oauth 1.0a put on

    Callback URI / Redirect URL -> http://twitter.com
    Website URL -> http://twitter.com
    
    
    consumer_key = 'nGZ2GOUnmJheVWj5ZagsG'
    consumer_secret = 'Yc7iFcuDFlNxQbEapIuSsN7OUOaWaH931VwRdOGjFjgy'
    access_token = '1265285941624811-yCEprankedSFWmHLCFcqHfHSQPKplJZ'
    access_token_secret = 'NkvqRUgBuhX9QWP2j2EHO3S640KOIxDgCaVuGC'

LIBRARIES

TODO

  • CREATE API FOR ANDROID APP | REPLIKA
  • ESTIMATE FEE COST
  • COINPICKER WITH PARAMETER
  • STOP LOSS = FEES + MARGIN/2
  • ESTIMATE BENEFIT WITH PERIOD (EX : 10% IN 2 DAYS)
  • LIMIT POSITION PRICE AT 10% OF WALLET BALANCE