Git Product home page Git Product logo

bitmexbot's Introduction

install python 3.4

install virtualenv

create a new virtualenv

go to the project directory

activate env

now for the first time you need to install all the requirements for this write this command

$ pip install -r requirements.txt

when all requirements done please go to testnet.bitmex and create your key and secret and after that open settings.py file and change key secret pairs values

if you want to go in live mode use settings.MODE = LIVE

to run the bot please run main.py file

bitmexbot's People

Contributors

abhisheksoni1 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitmexbot's Issues

ERROR - ws_thread - Couldn't connect to WS! Exiting.

`fatal: No names found, cannot describe anything.
2018-03-08 18:34:03,389 - INFO - bitmex_bot - BitMEX bot Version: v1.1

2018-03-08 18:34:03,389 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position
2018-03-08 18:34:03,390 - INFO - ws_thread - Authenticating with API Key.
2018-03-08 18:34:03,391 - INFO - ws_thread - Started thread
2018-03-08 18:34:08,401 - ERROR - ws_thread - Couldn't connect to WS! Exiting.`

@Abhisheksoni1

Any clue as to why I'm getting this error?

how to limit buy and sell with manual prices, or tell bot what prices to buy,close,or short [feature if possible]

hi i am trying to figure a way to make the bot place limit orders based on prices i give it manually for example
i want to make the bot place a limit buy order when bitcoin = current price that i give it and i want it to close the position , take profit when btc equals = a new price something like limit_buy_long = 6300 close_limit_buy_long = 6400 this would have to work for either a short or long position because i have a seperate python project i have been working on and i would like to have a way to write the outputs from my other program into the bot instead of using the TA or maybe have a option to enable TA off and just put in manual prices for the bot to buy and sell , and @Abhisheksoni1 thank you very much for this bot.

Bot crashes when opening an order

Bot frequently crashes after sometime with the following error:

2018-07-08 08:57:20,461 - ERROR - bitmex_bot - Expecting value: line 1 column 1 (char 0) 2018-07-08 09:14:00,562 - INFO - bitmex_bot - Shutting down. All open orders will be cancelled. 2018-07-08 09:14:00,563 - INFO - bitmex_bot - Resetting current position. Canceling all existing orders. 2018-07-08 09:14:00,564 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500}

How to change Order Type

How to change order type of STOP_LOSS_FACTOR and STOP_PROFIT_FACTOR?
I want to change STOP_LOSS_FACTOR with StopLimit --> Stop Market Stop
and STOP_PROFIT_FACTOR with Limit --> Take Profit Market MarketIfTouched

Bot crashes - Expecting value: line 1 column 1 (char 0)

On both live and testnet the bot crashes with some weird error

2018-07-18 05:30:55,338 - ERROR - bitmex_bot - Expecting value: line 1 column 1 (char 0) 2018-07-18 05:47:35,440 - INFO - bitmex_bot - Shutting down. All open orders will be cancelled. 2018-07-18 05:47:35,440 - INFO - bitmex_bot - Resetting current position. Canceling all existing orders. 2018-07-18 05:47:35,442 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\$ 2018-07-18 05:47:36,149 - INFO - bitmex_bot - Canceling: Sell 7477 @ 7431.0 2018-07-18 05:47:36,150 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"orderID": ["1173569b-bbb7-8a74-0aac-3ac496b1875d"]}

This left the bot with an open order without stop loss and take profit.

How can I implement my own custom strategy?

Thank you for this awesome bot. And if I want to use the EMA indicators in 2 hours candle charts. How can I achieve this.I am a noob in programing though.Just learn python 1 month ago. I'd really appreaciate that that if you can give me some guide.

Failed to establish a new connection: [Errno -3]

On live bot crashes with the following error does this mean that API has a max limit of request?

2018-07-12 02:35:05,966 - ERROR - bitmex_bot - HTTPSConnectionPool(host='www.bitmex.com', port=443): Max retries exceeded with url: /api/v1/trade/bucketed?binSize=1h&partial=false&symbol=XBT&count=400&reverse=true (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7464da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) 2018-07-12 02:51:46,073 - INFO - bitmex_bot - Shutting down. All open orders will be cancelled. 2018-07-12 02:51:46,074 - INFO - bitmex_bot - Resetting current position. Canceling all existing orders. 2018-07-12 02:51:46,075 - INFO - bitmex - sending req to https://www.bitmex.com/api/v1/order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500} 2018-07-12 02:51:47,767 - INFO - bitmex_bot - Canceling: Sell 50 @ 6307.0 2018-07-12 02:51:47,768 - INFO - bitmex_bot - Canceling: Sell 50 @ 6415.0 2018-07-12 02:51:47,769 - INFO - bitmex - sending req to https://www.bitmex.com/api/v1/order: {"orderID": ["1686e779-d10e-aa28-24ec-7e9251a79e0c", "1147feea-a9de-205b-54de-afe467af2e6f"]}

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.