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

Can not find a piece of example/test/documentation how to call this function. #164

Open
gymad opened this issue Feb 26, 2022 · 3 comments
Open

Comments

@gymad
Copy link

gymad commented Feb 26, 2022

async createOrder(

I get an "Order is not signed and client was not initialized with starkPrivateKey" error message whatever I try to do.

Is there anyone who has a working code for this and is able to share it? so that we can use it as a working example.
Pleaseeee

@snowkidind
Copy link

snowkidind commented Apr 2, 2022

Note to authors: there should be a documentation thread that allows people to comment on issues with the documentation

GET v3/orders endpoint doc is confusing because it says at the top:

"Description: Get active (not filled or canceled) orders for a user by specified parameters"

But later in the doc it provides order statuses for closed orders, making it seem like you can pull for closed orders from this endpoint.

In other words, How does one poll for previously completed orders?

Note: I see that it is possible to poll for fills and retrieve the orders based on fill.orderId using getOrderById

@snowkidind
Copy link

here's a gist I am working on that will cover what you are asking for in the next cpl days

https://gist.github.com/snowkidind/9545ca43962dc1251a226031ea797b06

@snowkidind
Copy link

snowkidind commented Apr 3, 2022

update: gist above is a somewhat complete example now

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

No branches or pull requests

2 participants