-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Feat/injective perpetual #81
Feat/injective perpetual #81
Conversation
…injective_perpetual
…to feat/injective_perpetual
PR update:
Pending:
|
Hi @petioptrv, good day to you. Would it be possible to know the next possible update? Thank you 🙇🏼 |
Hi @rapcmia, I'll look into all this right now |
@rapcmia, I've received confirmation from the injective team that this is a decision that they've made to exclude those markets from the Helix app. They are, however, still available to trade on the injective chain. |
Hi @petioptrv , upon checking I did some initial tests: for INJ-USDT was able to place buy order to OPEN, failed to place sell order (bot can't see INJ balance maybe) for ETH-USDT bot don't place any order to OPEN, no buy/sell order inj-usdt-injperp.zip upd: Upon crosschecking with Ralph, stil waiting for the fix for |
@nikspz, the
This is normal. The INJ/USDT PERP contract is collateralized in USDT, so the USDT balance is the only one that counts here. If most of the balance was used to create the long position open order, then there may have not been sufficient USDT for the short position open order. The logs reflect that.
USDT should be the collateral here too. There were no attempts to place orders on two of the runs... This still seems to me like Perp MM is deciding not to place orders, but logs are missing to clarify why. Have you tried using another strategy here or reducing the order size? If this persists, I can add debug statements in Perp MM to see why it decides not to place orders. Btw, I believe we can take this part of the conversation to the client PR since the changes will likely be committed there. The gateway |
@rapcmia, actually, the market ID, in this case, is the hash address of the INJ/USDT PERP market. I don't think you can see the order has (order ID) using the explorer approach. You can use the Gateway get command though. curl -s -X GET -k --key $GATEWAY_KEY --cert $GATEWAY_CERT "https://localhost:15888/clob/perp/orders?chain=injective&network=mainnet&connector=injective_perpetual&market=INJ-USDT&address=$INJECTIVE_SUBACCOUNTID" This will give you all orders for the account and market up to a certain number of orders. You can get the |
Hi @petioptrv, I just got confirmation that there are and will be multiple markets with same ticker, making it harder to distinguish each one of them. Wanted to check with you if you are using the unique market id as key to index markets. |
got orders lost events during the bot run again, usually lost after
Tried to test Client side, set up tight spreads to OPEN/CLOSE position firstly was able to OPEN and CLOSE few positions according or close to take profit (0.2)/ stop loss(0.15) spread set up: injper04.18.2023.zip Then I ran client little bit and its stuck with creating stop loss 😬 tried another strategy, |
The above issues have been addressed in the client PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I will add a commit after this is merged to create a new CLOB Perp section in Swagger docs
Before submitting this PR, please make sure:
A description of the changes proposed in the pull request:
This PR introduces the Injective Perpetual Gateway connector.
Tests performed by the developer:
Tips for QA testing:
Please test that the newly introduced endpoints for the clob perpetual Injective connector work as expected.
Link to client PR: hummingbot/hummingbot#6200
Link to PRP: https://snapshot.org/#/hbot-prp.eth/proposal/0x1e36039ae9ff72c133b2bcf4e7c3aa66b25693b195ac3e5c31ab7fe3f813d745