Dagur Valberg Johannsson
e93d46ec69
Add Cache-Control headers to RPC endpoints for load balancer caching
...
Introduce CachedJson response wrapper with cache duration based on data mutability:
- CACHE_IMMUTABLE (1 day): historical data with explicit timestamps
- CACHE_BCMR (5 min): token metadata
- CACHE_AGGREGATE (60s): aggregate data that changes with blocks
- CACHE_NONE: real-time data (current price, active pools, latest txs)
Endpoints dynamically select cache duration based on whether time parameters
are explicitly provided (historical/immutable) or defaulted to now (live).
2026-01-21 10:37:55 +01:00
Dagur Valberg Johannsson
ec49bf765b
Improve pool visitor queries; make price a visitor
...
This adds a big performance boost to pool visitor queries, also moving
token price queries to use the visitor model.
2025-08-19 02:37:28 +02:00
Dagur Valberg Johannsson
14a7486c1d
rpc: Add /volume endpoints
...
Add /volume endpoints that use the new token/sats delta entries for
faster volume queries.
2025-08-18 09:53:40 +02:00
Dagur Valberg Johannsson
6e0a56e33b
Add traded sats delta to pool history entry
...
Will make it faster to calculate volume.
2025-08-15 22:26:03 +02:00
Dagur Valberg Johannsson
3d83bdee47
Merge branch 'candlesticks2' into 'master'
...
Candlesticks2
See merge request riftenlabs/riftenlabs-indexer!20
2025-06-17 13:22:46 +00:00
jakobsn
d1e265cf2f
Candlesticks2
2025-06-17 13:22:46 +00:00
Dagur Valberg Johannsson
78e391560f
Added support for delphi oracle
...
This allows fetching historical asset prices from the blockchain.
2025-05-21 13:33:26 +02:00
Dagur Valberg Johannsson
4bf31c0131
Don't trigger parallel cache updates
2025-02-17 21:07:26 +01:00
Dagur Valberg Johannsson
5bb841f5c5
bug: don't crash on db read failure
2025-02-14 18:02:48 +01:00
Dagur Valberg Johannsson
0b4da0287d
bug: Fix tvl in token list
2024-11-28 10:27:35 +01:00
jakobsn
1248929fb4
Search tokens
2024-10-31 10:55:29 +00:00
Dagur Valberg Johannsson
e4e7ec3b71
Add aggregated APY endpoint
...
Add an endpoint that gives a APY value across multiple micro-pools
2024-10-23 16:54:06 +02:00
Dagur Valberg Johannsson
528cc79725
API call for latest transactions
2024-09-25 13:39:06 +02:00
Dagur Valberg Johannsson
cd6ce4d4ef
Add well-known BCMR sources
...
This adds additional BCMR data sources, mainly OTR.
2024-09-10 22:39:30 +02:00
Dagur Valberg Johannsson
675b3f08f9
rpc: Unique addresses
...
RPC method to show number of unique addresses interracting with cauldron
2024-09-04 13:25:36 +02:00
Dagur Valberg Johannsson
3ba04dfd58
Cache list_by_volume call
...
This is an expensive call used by all users of Cauldron DEX; cache for
60 seconds.
2024-05-29 08:46:35 +02:00
Dagur Valberg Johannsson
e38eaaa26c
Add BCMR indexer
...
This adds BCMR indexer, including downloading and parsing the actual
BCMR files.
2024-05-27 11:56:35 +02:00
Dagur Valberg Johannsson
98ab9a81b3
bugfix: List most recent pool utxos
2024-04-15 23:05:06 +02:00
Dagur Valberg Johannsson
76f0dcdb31
rpc: List pools by token and pkh
2024-04-03 21:45:18 +02:00
Dagur Valberg Johannsson
17f0d6017f
Add contract count for specific token
2024-04-03 21:44:42 +02:00
Dagur Valberg Johannsson
1b38f65224
Add 'valuelocked' endpoints
2024-04-03 21:44:42 +02:00
Dagur Valberg Johannsson
b80b1144da
api: current price
2024-04-02 13:17:25 +02:00
Dagur Valberg Johannsson
c8ca5cc698
Add volume endpoint
2024-03-21 11:15:44 +01:00
Dagur Valberg Johannsson
e52314c138
rpc: Add contract count
...
Fixes #2
2024-03-18 12:34:46 +01:00
Dagur Valberg Johannsson
1c817c8cfd
Add support for calculating pool APY
2024-03-14 10:54:33 +01:00