Documentation Index
Fetch the complete documentation index at: https://sure-917046f5-docs-backup-restore-clarity.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Binance integration allows you to sync your cryptocurrency accounts, track holdings across spot, margin, and earn products, and monitor trades directly in Sure using the Binance API. description: Connect your Binance account to track cryptocurrency holdings and transactions
Binance integration allows you to sync your cryptocurrency accounts, track holdings, and monitor transactions directly in Sure using the Binance API.This integration is currently in beta. Please report any issues you encounter.
How it works
When you connect your Binance account, Sure syncs:- Spot wallet balances
- Cross-margin account balances (net assets)
- Simple Earn positions (flexible and locked)
- Spot trade history
- Holdings with daily valuations
Prerequisites
To use the Binance integration, you need:- An active Binance account
- Binance API credentials (API key and API secret)
- API key permissions for reading account data and trade history
Getting your API credentials
- Log in to your Binance account
- Navigate to Account > API Management
- Create a new API key with the following permissions:
- Enable reading (view account information, balances, and trade history)
- Save your API key and API secret securely
Connecting Binance to Sure
- Navigate to Settings > Providers in Sure
- Click Add Provider and select Binance
- Enter your API credentials:
- Name: A label for this connection (e.g., “My Binance”)
- API Key: Your Binance API key
- API Secret: Your Binance API secret
- Optionally set a Sync start date to limit how far back trade history is fetched
- Click Connect
Account setup
After connecting, Sure discovers your Binance account data during the first sync. You then need to link the account:- Review the discovered Binance account
- Link it to an existing Sure account, or create a new one
- Click Save to complete the setup
Spot, margin, and earn balances are combined into a single account. They are not tracked separately.
Supported features
Account types
The Binance integration syncs data from:- Spot wallet — free and locked balances for all assets
- Cross-margin — net asset balances (assets minus borrowed amounts)
- Simple Earn — flexible and locked staking/savings positions
Holdings tracking
Sure creates a daily holding record for each asset, including:- Current quantity per asset and source (spot, margin, earn)
- Price data from Binance market data
- Valuations converted to your family’s preferred currency
Trade syncing
Sure syncs your spot trade history, including:- Buy and sell trades
- Trade price and quantity
- Commission and fees
- Support for multiple quote currencies (USDT, BUSD, FDUSD, BTC, ETH, BNB)
Currency handling
- All values are stored internally in USD
- Stablecoins (USDT, BUSD, FDUSD, TUSD, USDC, DAI) are treated as 1:1 with USD
- Values are converted to your family’s preferred currency for display
Security
Credential encryption
Your Binance API credentials are encrypted using ActiveRecord Encryption:- API Key: Uses deterministic encryption for querying
- API Secret: Uses standard encryption for maximum security
Read-only access
Sure only requires read permissions on your Binance API key. No withdrawal or trading permissions are needed.API timeouts
All Binance API requests include a 30-second timeout to prevent hanging connections.Syncing
Manual sync
To manually sync your Binance account:- Navigate to Settings > Providers
- Find your Binance connection
- Click Sync Now
Automatic sync
Sure automatically syncs your Binance account on a regular schedule along with your other connected accounts.Limitations
- Only spot, cross-margin, and Simple Earn accounts are supported — futures, options, and other Binance products are not included
- Margin balances reflect net assets (assets minus borrowed), not gross positions
- Historical trade data depends on Binance API availability and retention
- Real-time price updates depend on Binance market data availability To manually sync your Binance accounts:
- Navigate to Settings > Providers
- Find your Binance connection
- Click Sync
Automatic sync
Sure automatically syncs your Binance accounts on a regular schedule along with your other connected accounts.Troubleshooting
Connection errors
If you encounter connection errors:- Verify your API credentials are correct
- Check that your API key has the required read permissions
- Ensure your API key hasn’t been revoked or expired
Missing balances
If balances are missing:- Manually trigger a sync
- Check that the asset has a non-zero balance on Binance
- Verify the account is linked in Sure
Missing trades
If trades are missing:- Check that your API key has trade history read permissions
- Verify the trade exists in your Binance account
- Ensure the sync start date is set before the trade date
- Ensure your API key hasn’t been revoked or expired
- Check that your API key has read permissions enabled
- Confirm your Binance account is active and in good standing
Missing balances
If some balances are missing:- Manually trigger a sync
- Verify the asset exists in your Binance account
- Check that the account type (spot, margin, earn) is supported
Stale rate warnings
If you see stale rate warnings on certain holdings, this means Sure couldn’t find a recent exchange rate for that asset. This can happen with low-liquidity tokens.Account linking issues
If you have trouble linking accounts:- Ensure you’ve completed the account setup after connecting
- When linking to an existing account, verify it’s a manual crypto account
- Try unlinking and relinking the account
Limitations
- Historical trade data is limited to spot trades
- Some asset types may not have real-time pricing available
- Margin and Earn transaction history is not currently synced (only current balances)
Getting help
If you encounter issues with the Binance integration:- Check the troubleshooting guide
- Ask in the Discord
- Open an issue