Grain’s API provides a comprehensive set of endpoints for managing hedging, spot transactions, pricing, and fund movements — enabling seamless integration of FX workflows into your platform.Documentation Index
Fetch the complete documentation index at: https://docs.grainfinance.co/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Authentication
All endpoints use HTTP Basic Authentication. Your Client ID is the username and your Secret is the password.Environments
| Environment | Base URL |
|---|---|
| Sandbox | https://api.grainfinance.co/v1 (use Sandbox credentials) |
| Live | https://api.grainfinance.co/v1 (use Live credentials) |
Response format
All responses are JSON. Errors follow a consistent structure:2xx for success, 4xx for client errors, 5xx for server errors.