Skip to content
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

How to place stateful (long-term) order when running chain locally? #1160

Open
murat1999 opened this issue Mar 11, 2024 · 1 comment
Open
Labels

Comments

@murat1999
Copy link

How to place stateful (long-term) order when running chain locally?

In the documentation, we have placing an order for short-term only. We wanted to place stateful (long-term) to see orderbook and perpetualMarket API from Indexer. But I could not find how to place it.

In the code, I found this, we can set order_flag to 64 for long-term orders. However, when I run chain locally I cannot add additional flags to this command

./build/dydxprotocold tx clob place-order dydx199tqg4wdlnu4qjlxchpd7seg454937hjrknju4 0 0 0 1 10 10000 20 --from alice --chain-id localdydxprotocol
./build/dydxprotocold tx clob place-order dydx10fx7sy6ywd5senxae9dwytf8jxek3t2gcen2vs 0 0 0 2 10 10000 20 --from bob --chain-id localdydxprotocol

How can I add stateful (long-term) order? Or how can I connect chain locally on indexer which is also running locally? I tried to call Indexer APIs with Postman as stated in Indexer documentation, but it is not working. For example, http://localhost:3002/v4/height these cannot give any results from chain.

Screenshot 2024-03-11 at 10 57 59
Copy link

linear bot commented Mar 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant