Skip to main content

The API

The API polls Binance every minute and keeps the last regular-session price as the close reference, so it has to run all the time. The VPS must sit outside the US, UK, Canada and the Netherlands.
The container listens on 127.0.0.1:8787 only; put a reverse proxy (we use Caddy) in front for HTTPS.
Back up ./data. It holds the close references and the Agentic Wallet session. Without BINANCE_INSTANCE_ID, baw ties the session to the container’s MAC address and a new container is signed out.
Secrets live in .env on the server, never in the repository.

The docs

In the Mintlify dashboard, connect the GitHub repository and point it at apps/docs (the folder with docs.json). Then add the custom domain docs.tozzecard.xyz:
  1. Add the two verification TXT records the dashboard shows, and wait for both to turn green.
  2. Then add CNAME docs → cname.mintlify.builders.
Changing the CNAME before the TXT records verify can break HTTPS until the certificate is issued.