GithubHelp home page GithubHelp logo

leavemyyard / bitmexgridtrader Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 21.0 456 KB

The grid strategy bot for trading on bitmex with the PyQt5 User Interface

License: MIT License

Python 100.00%
bitcoin bitcoin-futures pyqt5 python python3 trading trading-algorithms trading-bot trading-strategies

bitmexgridtrader's Introduction

bitmexgridtrader's People

Contributors

leavemyyard avatar mordmytro 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bitmexgridtrader's Issues

Issues with the GUI loading

Receiving this error after req's are installed:

python trade.py Traceback (most recent call last): File "trade.py", line 5, in <module> from sourse.ui.mainwindow import MainWindow File "/home/***/BitmexGridTrader/sourse/ui/mainwindow.py", line 1 from __future__ import annotations ^ SyntaxError: future feature annotations is not defined

Any advice @LeaveMyYard ?

Problem runing trade.py

Hi,
I'm taking this message running trade.py after instalation of requeriments.txt

C:\Users\Tester\Downloads\BitmexGridTrader-master>python trade.py
Traceback (most recent call last):
File "trade.py", line 27, in
main()
File "trade.py", line 21, in main
window = MainWindow(loop)
File "C:\Users\Tester\Downloads\BitmexGridTrader-master\sourse\ui\mainwindow.py", line 73, in init
self.handle = BitmexExchangeHandler(*self.current_settings.get_current_keys())
TypeError: Can't instantiate abstract class BitmexExchangeHandler with abstract methods get_symbols_data

I try using linux and i'm taking the same issue, please can you help me?

Position issues

2021-03-31 06:21:01,909 - MarketMaker - _on_user_update - DEBUG - Order 7e78dc3b-d4ee-472c-b847-e60312ac0748 (57661.5;1000): FILLED
2021-03-31 06:21:01,909 - MarketMaker - _on_user_update - INFO - Balance: nan, Position: 57820.1082660994, 2000
2021-03-31 06:21:01,913 - MarketMaker - _on_user_update - WARNING - Position, got from server differes with the calculated one: (57836.8999; 2000) vs (57820.1082660994; 2000)
File "/home/danny/DEV/Python/bots/BitmexGridTrader-master/crypto_futures_py/bitmex.py", line 316, in start_user_update_socket
__process_msg(result)
File "/home/danny/DEV/Python/bots/BitmexGridTrader-master/crypto_futures_py/bitmex.py", line 299, in __process_msg
__process_position_update(msg)
File "/home/danny/DEV/Python/bots/BitmexGridTrader-master/crypto_futures_py/bitmex.py", line 255, in __process_position_update
on_update(
File "/home/danny/DEV/Python/bots/BitmexGridTrader-master/sourse/marketmaker.py", line 173, in _on_user_update
self.position.price = data.price
An error happened in user update socket AttributeError 'PositionUpdate' object has no attribute 'price':
{"table":"position","action":"update","data":[{"account":180969,"symbol":"XBTUSD","openOrderBuyQty":3000,"openOrderBuyCost":-5257000,"execBuyQty":1000,"execBuyCost":1734000,"execQty":1000,"execCost":-1734000,"execComm":-433,"currentTimestamp":"2021-03-31T10:21:00.790Z","currentQty":2000,"currentCost":-3543000,"currentComm":883,"unrealisedCost":-3459000,"grossOpenCost":5257000,"grossExecCost":1734000,"markValue":-3478000,"riskValue":8735000,"homeNotional":0.03478,"foreignNotional":-2000,"posCost":-3459000,"posCost2":-3459000,"posInit":691800,"posComm":3114,"posMargin":694914,"posMaint":15567,"initMargin":1060075,"maintMargin":675914,"realisedPnl":83117,"unrealisedGrossPnl":-19000,"unrealisedPnl":-19000,"unrealisedPnlPcnt":-0.0055,"unrealisedRoePcnt":-0.0275,"avgCostPrice":57836.8999,"avgEntryPrice":57836.8999,"breakEvenPrice":57837,"marginCallPrice":48333,"liquidationPrice":48333,"bankruptPrice":48193,"timestamp":"2021-03-31T10:21:00.790Z","lastValue":-3478000,"currency":"XBt","markPrice":57503.37}]}, restarting...

FTX

Great project! How about adding FTX? That would really be awesome!

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.