Connections

Connect Binance

Continue with your agent, or follow the steps below in your own Terminal.

Continue in your agent
Follow https://gofin.sh/docs/connections/binance/ to help me connect Binance to GoFin with read and write permissions for the supported workflows I want. Verify the connection without trading or moving funds.
      

1. Prepare your connection

Start with GoFin installed and a working local agent setup. The agent can inspect public help; you create credentials and complete protected prompts yourself.

  1. Sign in to your Binance account. Open Account → API Management → Create API. Complete Binance’s account eligibility and security requirements; the agent should not perform a deposit for you.
  2. Choose System generated for the HMAC example below, give the key a GoFin label and complete Binance’s verification. You receive an API key and secret.
  3. Configure read and write permissions using the mapping below. Add the Mac’s outgoing public IP to the allowed addresses, including your VPN if used, so the key can retain the write permissions required by Binance.
  4. Keep the secret private for GoFin enrollment. For RSA or Ed25519 instead, follow Binance’s self-generated-key instructions: upload only the public key to Binance and enter the corresponding PKCS#8 private signing key in GoFin.

See Binance’s official key-creation guide.

Permissions for read and write

For a full read/write setup, configure the rows for every supported workflow you want available. Binance restricts unrestricted-IP HMAC keys to reading; withdrawal permission requires IP restrictions. An API key created before Futures activation may need replacement after that product is activated. These are exchange-side prerequisites; GoFin cannot grant them.

Binance’s API-key permission fields distinguish the effective flags from the account’s advertised products.

Permission / capabilityWhat to enable for read and write
ReadingKeep Enable Reading enabled for balances, orders and account inspection.
Spot ordersEnable Enable Spot & Margin Trading for supported spot order placement and cancellation. Margin products have their own eligibility and scope.
Futures ordersEnable Enable Futures for supported futures workflows on an activated eligible Futures account.
Account transfersEnable the relevant internal/universal-transfer permissions for the supported account movement. Check the key’s reported enableInternalTransfer and permitsUniversalTransfer separately; one does not establish the other.
WithdrawalsEnable Enable Withdrawals for supported withdrawals and set the required IP restrictions. Withdrawal access is separate from trading and internal transfers.

2. Add it to GoFin

Check the installed requirements first:

gofin connections add --help
      

In Apple Terminal or your own macOS system OpenSSH session, run the command below. Names such as binance-main are example local aliases; choose one you recognize. Replace any YOUR_… placeholder with the indicated public value before running.

gofin connections add --provider binance --name binance-main --credential-type hmac --role main
      

Follow GoFin’s hidden credential prompts where required. Review the resolved identity and the read-only checks GoFin actually reports, then approve saving the connection. Secrets do not belong in flags, environment variables, JSON, screenshots or your agent’s terminal. Enrollment is a configuration change; it moves no funds and grants no future financial authority.

The example connects a main account. A subaccount uses --role sub; an optional parent relationship also requires the subaccount email and an enrolled main connection. Ask your agent to check the installed schema before adding that relationship. Configure the permissions for your intended supported reads, trading, account transfers and withdrawals during setup. Each actual financial action still passes GoFin’s authority and limit checks.

3. Check setup without executing a write

After enrollment, check local metadata and service health:

gofin connections list
gofin doctor
      

Confirm the expected local name and identity. A successful read confirms only that read. It does not prove permission or readiness to trade, transfer or withdraw. Ask your agent to inspect the key permissions and a supported account read, using the CLI’s current explanations and schemas. Report which permissions were actually observed and which remain unverified. Use a supported preview/dry-run when available; do not submit a test order or transfer during setup. A failed read is not a zero balance or proof that the account is empty.

Check HMAC versus RSA/Ed25519 selection, current IP restrictions, account role and the key’s own account identity. A key created before Futures activation may not have Futures access; spot access does not establish derivatives access.

Manage credentials later

Use gofin connections update --help to discover the protected replacement flow for this provider. Check rotation and removal guidance before changing an active connection. Revoking a venue key and removing a GoFin connection are separate actions; neither cancels outstanding venue activity.

Sources and verification

For command and enrollment details, see the GoFin onboarding documentation. Official provider instructions reviewed on 18 October 2026. Binance API keys

Verification scope: documented commands and public instructions. No new credentials were created and no live enrollment, native approval, trading, transfer or withdrawal result is claimed here.