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

Error: Could not place order: GraphQL error: Invalid timestamp using payload #20

Closed
DulajSP opened this issue Jul 8, 2020 · 6 comments

Comments

@DulajSP
Copy link

DulajSP commented Jul 8, 2020

I'm getting following error when i try to place a limit order.
( Error: Could not place order: GraphQL error: Invalid timestamp using payload )

const order = await nash.placeLimitOrder(
            false,
            createCurrencyAmount("1", CryptoCurrency.GAS),
            OrderBuyOrSell.SELL,
            OrderCancellationPolicy.GOOD_TIL_CANCELLED,
            createCurrencyPrice("10", CryptoCurrency.USDC, CryptoCurrency.GAS),
            "gas_usdc"
          );

Any help would be appreciated.

@Marcpepe
Copy link

Marcpepe commented Jul 8, 2020

Hi @DulajSP, are you making that call from a server or a browser?

Anyway I think it might be the same error I'm getting: #15 (comment)

For me the timeout comes from a dhFillRPool request generated by the placeLimitOrder method.

@jankjr
Copy link
Contributor

jankjr commented Jul 9, 2020

Hi @DulajSP

I took some time to investigate the issue yesterday and found it was because the settings we are running the pool filling with are not suitable for the browser. I've exposed a method to reconfigure those settings here: nash-io/nash-protocol#9

Once the MR has been merged and a new version of the protocol has been released you should be able to set it to a more appropriate level.

@DulajSP
Copy link
Author

DulajSP commented Jul 9, 2020

Thanks @Marcpepe and @jankjr
I'm making that calls from server and its looks like only initial order getting that error. As @Marcpepe said I think I have the same problem you had before.

@Marcpepe
Copy link

Marcpepe commented Jul 9, 2020

@DulajSP From the server, I do witness a lag (4-5s I'd say) when placing the very first order. But the order does go through and I don't get the "Invalid timestamp" error.

Maybe this has to do with your server location? But then the other calls would probably also fail..

@Marcpepe
Copy link

Marcpepe commented Jul 9, 2020

@DulajSP Do you have Telegram? If you do, ping me @marcpepe

@DulajSP
Copy link
Author

DulajSP commented Jul 17, 2020

Thanks @Marcpepe
Yes, I'll text you.

@DulajSP DulajSP closed this as completed Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants