You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Allowance.cost and Allowance.remaining are both of type long. According to the documentation (https://docs.cryptowat.ch/rest-api/rate-limit), credit cost per API call is never higher than 0.01. This makes Allowance.cost always equal to zero and thus completely useless. Allowance.remaining is also much less useful when rounded to full credits.
I would recommend using another data type instead (decimal or at least double/float) or multiply cost/remaining values returned by Cryptowatch by 1000 before casting them to long, and document those values as milli-credits.
The text was updated successfully, but these errors were encountered:
Currently Allowance.cost and Allowance.remaining are both of type
long
. According to the documentation (https://docs.cryptowat.ch/rest-api/rate-limit), credit cost per API call is never higher than 0.01. This makes Allowance.cost always equal to zero and thus completely useless. Allowance.remaining is also much less useful when rounded to full credits.I would recommend using another data type instead (decimal or at least double/float) or multiply cost/remaining values returned by Cryptowatch by 1000 before casting them to
long
, and document those values as milli-credits.The text was updated successfully, but these errors were encountered: