ww58
- ago
I run the strategy for the first time and I see that some symbols have not been updated to the current date. When I run it second time, there are even fewer of these symbols. I have rechecked manually via Historical data loading testbed and it loads. It may be because of the limits of the data provider, then the ability to add a pause is needed I guess.

0
323
Solved
10 Replies

Reply

Bookmark

Sort
Cone8
 ( 24.99% )
- ago
#1
Which Provider?
What does the Log Viewer say about it? (Ctrl + L)
0
ww58
- ago
#2
CryptoCompare free account. No entries related to this provider in Log. I've noticed this with other providers as well, but there definitely because of the limits.
0
Cone8
 ( 24.99% )
- ago
#3
CryptoCompare has rate limits, but I don't think we've applied a throttle for it. The problem is that I can't find any documentation that states what the limit is. Maybe someone knows?
0
ww58
- ago
#4
Cone, may be user configurable limit for each provider? For example, twelvedata also has limits and they depend on user's plan
0
Cone8
 ( 24.99% )
- ago
#5
Of course it depends on the provider and possibly the user's plan.

From what I can tell, CryptoCompare has a multi-rate limit and you can see how many calls you've made and have left by second, minute, hour, day, and month just by navigating here:
https://min-api.cryptocompare.com/stats/rate/limit

For example, my result looks like this:
calls_made: Object
second: 1
minute: 21
hour: 23
day: 100
month: 132
calls_left: Object
second: 19
minute: 279
hour: 2977
day: 7400
month: 49868

Based on "calls_left" it seems that they'll support bursts of up to 20 requests per second, but not more than 300 per minute, which is 5 requests per second. I'll add a throttle for 5 requests per second, and that should keep from missing data during updates.
0
Cone8
 ( 24.99% )
- ago
#6
First I tried a 5/second limit, but still missed a few updates on a larger DataSet. It looks like 4/second is the sweet spot to avoid missing updates.

This is in place for Build 32.
1
Best Answer
- ago
#7
QUOTE:
Cone, may be user configurable limit for each provider? For example, twelvedata also has limits and they depend on user's plan

It's a pity that FMP's, Alphavantage's or TwelveData's API tokens aren't indicative of the user's plan so a provider can't guess what rate limits to apply. Despite it may seem reasonable to introduce user configurable limits, for now we've refrained from doing so because it's error prone and would require constant maintenance. User plans can change quickly, we cannot track vendors' changes to the rate limit policy.
0
- ago
#8
I did a bulk upload using CryptoCompare, and all the data just uploaded to 19 Feb 2024 (for 97 symbols). I tried again 20 minutes later, and same thing. Today's date is 5 March 2024.

Is there a way to fix this, and is there an alternative provider for crypto (not just the big top 20 but for many)?

Using the link above, I got this result:
{"Response":"Error","Message":"You are over your rate limit please upgrade your account!","HasWarning":false,"Type":99,"RateLimit":{"calls_made":{"second":1,"minute":1,"hour":7030,"day":7030,"month":7030,"total_calls":12698},"max_calls":{"second":20,"minute":300,"hour":3000,"day":7500,"month":50000}},"Data":{}}

However, even on the testbed testing BTC.USDT it returns 2,519 bars, last date 19/02/2024.


Thanks and regards
Rod
0
- ago
#9
I cannot but quote the error message you're getting, it sounds pretty unambiguous?

"You are over your rate limit please upgrade your account!"

This provider is not very useful without a paid subscription.
1
- ago
#10
Thanks. Fair call, excuse the pun.

I just tried a free API from Cryptocompare and that fixed the problem. Let's see how long it lasts!

PS: Are there alternative providers successfully used by WL members? I have searched all these discussion boards and found nothing. AlphaVantage (I have a paid sub) only works for the big coins.
0

Reply

Bookmark

Sort