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

handle order undefined in getJitIx #15

Open
jordy25519 opened this issue Jan 9, 2024 · 0 comments
Open

handle order undefined in getJitIx #15

jordy25519 opened this issue Jan 9, 2024 · 0 comments

Comments

@jordy25519
Copy link
Contributor

jordy25519 commented Jan 9, 2024

using TS sdkJitProxyClient.getJitIx to build transactions and encounter this error occasionally

/project/node_modules/@drift-labs/jit-proxy/lib/jitProxyClient.js:30
            writableSpotMarketIndexes: (0, sdk_1.isVariant)(order.marketType, 'spot')
                                                                  ^
TypeError: Cannot read properties of undefined (reading 'marketType')

seems like some race condition and the order is not found

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

1 participant