Skip to content

zarpay/zar-calc-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

443 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zar-calc-data

Auto-generated data file for the ZAR merchant profit calculator.

This repo holds two things:

  • p2p.json — the actual data. Refreshed hourly by the workflow in this repo (.github/workflows/refresh-p2p.yml), which runs scripts/fetch-p2p.js against live Binance / Bybit / OKX P2P endpoints for the 16 currencies the calc supports.
  • scripts/fetch-p2p.js — the fetcher itself. Mirrored from scripts/fetch-p2p.js in the calc repo. When that script changes, copy the new version here too — they're meant to stay in sync.

The calc reads p2p.json CORS-open via jsDelivr at:

https://cdn.jsdelivr.net/gh/zarpay/zar-calc-data@main/p2p.json

Do not edit p2p.json by hand — the next cron run will overwrite it.

The workflow uses the repo's default GITHUB_TOKEN to commit back to itself, so there's no PAT to maintain. If you ever need to trigger a refresh manually: gh workflow run refresh-p2p.yml --repo zarpay/zar-calc-data.

About

Auto-generated P2P rate data for the ZAR merchant profit calculator. Do not edit by hand.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors