#bachir_api

1 messages ยท Page 1 of 1 (latest)

paper knollBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1364594576244867113

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

last igloo
thin light
#

Hi toby,

Would it be a reliable way to track the daily balance of an account : for example, having a cron that calls this endpoint every day at 00:00 UTC and saves the value for the given account ?

last igloo
#

Hm, my fear with that approach is whether you would run into rate limit issues, which is going to depend on how many accounts you're handling and how quickly you try to fetch all of those balances. Let me see if there is an Event type that could be listened for with a webhook endpoint instead.

#

Sorry, I'm not seeing an Event type that looks like it'd be better for this, so I do think polling daily is going to be the best approach for what you're trying to do.

You'll want to be mindful of our rate limits and ensure your code is ready to gracefully handle rate limiting errors if you suspect you'll get anywhere close to those limits:
https://docs.stripe.com/rate-limits

thin light
#

Thanks! We'll take care of not hitting the rate limit.