-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bitmex Only Limit Order Size To XBT Available On Side With Accumulated Position #994
Comments
@ctubio Where is the code that limits order size to available balance? The changes I've been making haven't worked, which if I was modifying the correct code it should. |
@asfbhero are you getting the same thing I'm getting here: |
try doing it on Snapex instead, or Binance futures. I think it'll work in there. |
thank you for your response @cryp2owl , how do you configure K.sh for Snapex or binance futures? I cannot find the API_EXCHANGE files, I checked your fork but that seems to be even with carles', can you commit the exchange config files for those exchanges? |
OK apparently it could bid if i pull the TBP limits from 0 to 100, but I still don't understand relative to what the bot takes positions on bitmex, for example when it 'sells' the quote currency stays at 0 and as it buys the base currency stays the same... |
I started to dab into BITFINEX_MARGIN and found this thread. It looks like the margin trading TBP is still a mess... UP! |
I'm essentially trying to accomplish what TBPValue would do if percentages worked on Margin exchanges as they do on cash accounts.
I am able to get into winning trades without much of an issue, however, since XBT available will continue to go down as more and more leverage is added (buying more and more in an uptrend and selling more and more into a downtrend), when in a winning trade, both the bidsize and the ask size will decrease as margin available decreases.
Want I want to have happen is, if I'm long XBT/USD, and XBT available decreases, I only want the bid size to decrease along with XBT avail, not the ask size.
If I'm short and XBT available decreases, I only want the ask size to decrease along with XBT available.
This should allow for leverage not to get out of control, and turn large winners into losers. I think it would greatly help out anyone trying to use this on Bitmex.
The text was updated successfully, but these errors were encountered: