Skip to content

Add getMultipleMangoAccounts to MangoClient class#92

Open
nicholasgodfreyclarke wants to merge 1 commit into
mainfrom
clarkeni/get_multiple_mango_accounts
Open

Add getMultipleMangoAccounts to MangoClient class#92
nicholasgodfreyclarke wants to merge 1 commit into
mainfrom
clarkeni/get_multiple_mango_accounts

Conversation

@nicholasgodfreyclarke

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/client.ts
.map((ma) => ma.spotOpenOrders.filter((pk) => !pk.equals(zeroKey)))
.flat();

const openOrderAccountInfos = await getMultipleAccounts(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a limit of how many open orders you can request at once using gMA, i think it's 100 or 200. could you add here a loop that processes the requests in reasonable batch sizes?

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

Successfully merging this pull request may close these issues.

2 participants