leavemyyard / bitmexgridtrader Goto Github PK
View Code? Open in Web Editor NEWThe grid strategy bot for trading on bitmex with the PyQt5 User Interface
License: MIT License
The grid strategy bot for trading on bitmex with the PyQt5 User Interface
License: MIT License
can this use at binance?
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?
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...
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 ?
Great project! How about adding FTX? That would really be awesome!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.