client/container: fetch: prices: format/allow non-alpha currencies #205

Merged
AaronFiore merged 0 commits from refs/pull/205/head into master 2025-08-11 19:45:06 +00:00
AaronFiore commented 2025-08-08 21:02:59 +00:00 (Migrated from gitea.com)

Description

Formats non-alpha character currencies for hledger's prices journal
(e.g., "1INCH", "USDC.e", etc.)

MUST re-fetch respective prices for respective years.

NOTE: unlike #202 , this is specific to the prices impl in fetch.


⚠️HOLD: before merging, there is a bug in parsing '.' character and only produces one day of prices. The issue likely exists on the bash side of things because a debug shows that php is returning the entire year.

NOTE: The above issue appears to be entirely upstream. Unix timestamps actually show that they are returning 1 entry per 1 minute instead of 1 entry per 5 minutes (per year) and only 1000 entries, for this specific contract and chain ( fetch price="arbitrum:0xff970a61a04b1ca14834a43f5de4533ebddb5cc8/USDC.e" api=mobula).

Agreement

### Description Formats non-alpha character currencies for hledger's prices journal (e.g., "1INCH", "USDC.e", etc.) **MUST** re-`fetch` respective prices for respective years. NOTE: unlike #202 , this is specific to the prices impl in `fetch`. --- ~⚠️**HOLD**: before merging, there is a bug in parsing '.' character and only produces one day of prices. The issue likely exists on the bash side of things because a debug shows that php is returning the entire year.~ NOTE: The above issue appears to be entirely upstream. Unix timestamps actually show that they are returning 1 entry per 1 minute instead of 1 entry per 5 minutes (per year) and only 1000 entries, for this specific contract and chain ( `fetch price="arbitrum:0xff970a61a04b1ca14834a43f5de4533ebddb5cc8/USDC.e" api=mobula`). ### Agreement - [x] I have read and understood the [Development](https://gitea.com/EvergreenCrypto/docker-finance#development) and [License](https://gitea.com/EvergreenCrypto/docker-finance#license-and-disclaimer) documentation
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Reference: EvergreenCrypto/docker-finance#205