What This Workflow Does
This automation solves the tedious manual process of tracking cryptocurrency funding fees from Binance perpetual futures contracts. Funding fees are periodic payments exchanged between long and short position holders, typically occurring every 8 hours. Without automation, traders must manually check and record these fees across multiple trading pairs, leading to errors and incomplete records.
The workflow connects directly to Binance's API to pull funding fee history automatically, then structures and stores this data in Airtable. This creates a searchable, filterable database of all funding payments with accurate timestamps, amounts, and trading pair information. The system runs on a schedule to ensure no funding events are missed, even during weekends or holidays.
How It Works
1. Binance API Connection
The workflow authenticates with Binance using API keys with read-only permissions. It queries the funding fee history endpoint to retrieve all recent payments associated with your account. The API returns precise data including payment timestamps, trading pairs, and fee amounts in both the quote currency and BTC equivalent.
2. Data Transformation
Raw API responses are processed to calculate meaningful metrics like daily/weekly totals, fee percentages relative to position size, and cumulative costs per trading pair. The workflow converts timestamps to your local timezone and formats numbers for consistent reporting.
3. Airtable Integration
Processed data gets pushed to a structured Airtable base with separate tables for funding events, trading pair summaries, and time-period aggregates. Relations between tables enable powerful filtering - for example, viewing all BTC pairs with above-average funding costs last month.
Pro tip: Create an Airtable dashboard view showing funding fees as a percentage of your position size to identify the most expensive pairs to hold long-term.
Who This Is For
This automation benefits cryptocurrency traders and funds that:
- Trade perpetual futures contracts on Binance
- Hold positions overnight or longer-term
- Need accurate records for performance analysis
- Want to optimize strategies based on funding costs
- Require detailed records for tax compliance
What You'll Need
- Binance account with API key permissions
- Airtable account with a base prepared for funding fee data
- n8n instance (cloud or self-hosted)
- Basic understanding of cryptocurrency derivatives
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure Binance API credentials in the HTTP Request node
- Set up your Airtable connection details
- Adjust the schedule to run every 8 hours (or your preferred interval)
- Test with a small date range before running full history
Key Benefits
Save 5-10 hours monthly by eliminating manual funding fee tracking across multiple trading pairs and time periods.
Improve trading decisions with instant visibility into which pairs have the highest funding costs over time.
Maintain audit-proof records with exact timestamps and amounts for every funding payment received or paid.
Enable advanced analysis by correlating funding costs with position performance in your preferred tools.
Reduce tax preparation headaches with organized, complete records of all derivative trading costs.