Comments (14)
Thanks @Abhisheksoni1 btw thanks for this awesome project. It does need allot of improvement though. I'm looking at using TA-Lib so the bot can use different indicators. Will do a pr once done.
from bitmexbot.
yes it is there is cross margin of 10
from bitmexbot.
Thanks @LAPPLS but where can I find settings for leverage to use? I couldn't find anything defined on settings.py
from bitmexbot.
there is a method inside the codes for setting cross-margin in the system
from bitmexbot.
it defaults to 10 so there is no method or something inside setting.py file
from bitmexbot.
Thank you @cofibit it means alot, Yeah we can work on TA-Lib let me know if you need my help in this i am happy to code with you :D
from bitmexbot.
Hi @Abhisheksoni1 is this the method you were referring to on setting the leverage?
bitmex_bot/bitmex.py
@authentication_required def isolate_margin(self, symbol, rethrow_errors=False): """Set the leverage on an isolated margin position""" path = "position/isolate" postdict = { 'symbol': symbol, 'enabled': False } return self._curl_bitmex(path=path, postdict=postdict, verb="POST", rethrow_errors=rethrow_errors)
So I just need to set enabled to True? you said that the default is 10 but where is the default leverage value value defined?
from bitmexbot.
I was trying to figure out the exact same thing let me know if you find something.
from bitmexbot.
@hashtagex yes on bitmex.py there's a method named isolate_margin just set enabled to True as per @Abhisheksoni1 by default it is set to 10x leverage, I'm not sure if it does get whatever leverage you set on your account or it is hard coded to 10x.
from bitmexbot.
@cofibit Great I actually see this in the code before, so I'll look into it again. Thanks for the tip. Would be great if we could get bitmex running on freqtrade. I tried before but I was having trouble getting it to recognize the xbt symbol. Anyways I'll try this out.
from bitmexbot.
@hashtagex yeah was trying to make bitmex work on freqtrade but was throwing allot of errors reason is that bitmex pairs are not the same with bittrex/binance format. Also this is much better than freqtrade since it is using websocket. Ccxt just polls servers and is subjected to limits.
from bitmexbot.
@cofibit true, I can agree with you there. It's just limited, I like seeing and being able to control on the go. But I ran the default bot live for a bit with a few changes to the indicator numbers and didn't do too bad. I was trying to add some of my own as well, but haven't been able to implement them in the bitmex.py file. I see your trying to implement talib. That would be great. I was def not getting anywhere when I was trying, but I'm not a pro, I just get around and learning everyday.
from bitmexbot.
when the bot starts it resets to Cross, should I just change the leverage through bitmex ui? using latest master, thanks
from bitmexbot.
nm, tried the True value in the isolate method and started out with 50x, thanks
from bitmexbot.
Related Issues (10)
- ERROR - ws_thread - Couldn't connect to WS! Exiting. HOT 1
- websockets issue effecting the project HOT 1
- fatal: No names found, cannot describe anything.
- How to change Order Type HOT 2
- Bot crashes when opening an order HOT 2
- Failed to establish a new connection: [Errno -3] HOT 1
- Bot crashes - Expecting value: line 1 column 1 (char 0) HOT 1
- how to limit buy and sell with manual prices, or tell bot what prices to buy,close,or short [feature if possible]
- How can I implement my own custom strategy?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitmexbot.