aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rates.ts
Commit message (Collapse)AuthorAgeFilesLines
* rates: source Iranian IRR/IRT from Wallex, decoupled from the tick loopAdam Soltys2026-07-101-19/+44
| | | | | | | | | | | apiv2.nobitex.ir became unreachable from our egress, and it was fetched inline on every binance tick, so it failed and logged on every tick. Move the Iranian market-rate fetch onto its own 60s timer with a request timeout, cache the last-good value (falling back to the fixer rate after an hour), and throttle failure logging. Switch the source to Wallex (api.wallex.ir BTCTMN), which is reachable. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* rates: fix Iranian IRR/IRT feed after nobitex API host moveAdam Soltys2026-07-041-6/+19
| | | | | | | | | | The nobitex endpoint host changed (old host now NXDOMAIN) and the fetch was swallowed by an empty catch, silently blanking Iranian rates. Point at the current host, and since the API quotes in Rial despite the IRT pair name, set IRR from lastTradePrice and IRT = Rial/10. Log fetch failures instead of ignoring them. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* remove logsAdam Soltys2026-03-171-1/+0
|
* fix rates pollingAdam Soltys2025-06-161-4/+8
|
* mark outgoing payments confirmedAdam Soltys2024-11-121-1/+0
|
* set fixer base to USDAdam Soltys2024-11-111-3/+4
|
* biome lintAdam Soltys2024-10-311-11/+11
|
* send rate from memoryAdam Soltys2024-10-141-1/+3
|
* iranian tomanAdam Soltys2024-09-061-3/+6
|
* handle empty ratesAdam Soltys2024-09-051-1/+2
|
* fx endpointAdam Soltys2024-09-041-6/+9
|
* typescriptAdam Soltys2024-08-261-0/+71