The Pacifica Builder Program lets third-party developers earn fees on orders they route through the Pacifica API on behalf of their users. By embedding aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pacifica-fi/docs-migrate/llms.txt
Use this file to discover all available pages before exploring further.
builder_code in order creation requests, approved builders receive a share of the fees generated by those orders. Up to 10,000,000 points have been set aside to reward teams building on Pacifica, with rewards distributed based on each team’s measurable contribution to platform growth.
As of March 12th, 2026, the Builder Rewards Program has been extended by an additional three months. Volume 2 runs from March 12th, 2026 to June 12th, 2026. Only teams that make significant contributions to Pacifica’s development are eligible for point rewards.
How Builder Codes Work
A builder code is a short alphanumeric identifier (max 16 characters) that uniquely identifies your integration. When included in an order payload, the Pacifica API attributes the order to your builder account and applies your configured fee rate on top of the platform’s standard fees. Key rules:- The user must explicitly approve your builder code before you can include it on their orders
- Users can revoke approval at any time
- Orders will be rejected if the user’s approved
max_fee_rateis lower than your builder’s configuredfee_rate - Builder codes must be alphanumeric and no more than 16 characters
Integration Steps
Request User Authorization
Before placing any orders with your builder code, the user must sign an approval message containing your After generating the signature per the signing implementation, submit the complete payload:Endpoint:
builder_code and the maximum fee rate they consent to (max_fee_rate).Data to sign:POST https://api.pacifica.fi/api/v1/account/builder_codes/approveInclude Your Builder Code in Order Requests
Once a user has approved your code, include Example — Limit order with builder code (data to sign):Example — TP/SL with builder code (data to sign):
builder_code in the data object of every supported order creation request.Supported REST endpoints:POST /api/v1/orders/create_marketPOST /api/v1/orders/createPOST /api/v1/orders/stop/createPOST /api/v1/positions/tpsl
create_market_ordercreate_limit_ordercreate_stop_orderset_position_tpsl
For TP/SL orders,
builder_code is provided at the top level of the data object — not inside the individual take_profit or stop_loss objects.Managing Your Builder Code
Update Fee Rate
Builder account owners can update the fee rate their code charges at any time. Data to sign:POST https://api.pacifica.fi/api/v1/builder/update_fee_rate
Check User Approvals
Query which builder codes a specific user has approved: Endpoint:GET https://api.pacifica.fi/api/v1/account/builder_codes/approvals?account=6ETn....
Response:
Revoke Authorization
Users can revoke a previously granted builder code approval at any time by signing a revocation message. Data to sign:POST https://api.pacifica.fi/api/v1/account/builder_codes/revoke
Useful Endpoints
| Endpoint | Description |
|---|---|
GET /api/v1/trades/history?account=[WALLET]&builder_code=[CODE] | User trade history filtered by builder code |
GET /api/v1/builder/overview?account=[WALLET] | Builder code configuration and specifications |
GET /api/v1/builder/trades?builder_code=[CODE] | All trades routed through a builder code |
GET /api/v1/leaderboard/builder_code?builder_code=[CODE] | User leaderboard for a specific builder code |
Implementation Notes
- All JSON keys must be recursively sorted alphabetically before generating the compact JSON string for signing
- The
builder_codefield must be placed inside thedataobject when constructing the payload to be signed - All timestamps are in milliseconds
- The default
expiry_windowis 30,000 ms (30 seconds) if not specified - The
builder_codefield is optional on all order creation endpoints — existing integrations remain backwards compatible
Error Reference
| Error | Cause |
|---|---|
403 Unauthorized | User has not approved the builder code, or their max_fee_rate is lower than the builder’s fee_rate |
404 Not Found | The specified builder code does not exist |
400 Bad Request | Invalid builder code format — must be alphanumeric and no more than 16 characters |
Register for the Builder Program
Contact ops@pacifica.fi to start the onboarding process.
Discord
Open a support ticket at discord.gg/pacifica.
Telegram
Message @PacificaTGPortalBot on Telegram.