> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 0x Integration

Streamline your decentralized trading strategies by connecting 0x to your entire crypto ecosystem through B3OS. Automate liquidity aggregation and real-...

![0x logo](https://ai-icon.b3.fun/logo/0x) Integration available

Streamline your decentralized trading strategies by connecting 0x to your entire crypto ecosystem through B3OS. Automate liquidity aggregation and real-time price fetching to execute high-performance swaps without manual intervention.


**[Public page](https://b3os.org/integrations/app/0x)**

Open the user-facing integration overview for examples, templates, and sharing.
  **[Action reference](/actions/reference)**

Schema-level references for executable actions and test payloads.
  **[Trigger reference](/actions/trigger-reference)**

Event and schedule triggers that can start B3OS workflows.

## Build With 0x

Use 0x when a workflow needs to call 0x Price Quote, 0x Swap or related 0x operations from a typed B3OS action. Start in the visual editor to connect an account, then use the references below for payload shape, required fields, and API testing.

## Available Actions

| Action | ID | Connector | Required fields |
| --- | --- | --- | --- |
| ![0x Price Quote logo](https://cdn.b3.fun/b3os-icons/0x.png) [0x Price Quote](/actions/reference/generated/0x-quote) | `0x-quote` | `-` | `sellToken`, `buyToken`, `sellAmount`, `chainId` |
| ![0x Swap logo](https://cdn.b3.fun/b3os-icons/0x.png) [0x Swap](/actions/reference/generated/0x-swap) | `0x-swap` | `wallet` | `sellToken`, `buyToken`, `sellAmount`, `chainId` |


## Available Triggers

No trigger references are published for this integration yet.


## Common Use Cases

**Automated Rebalancing**

Automatically execute 0x Swaps to rebalance your DeFi portfolio whenever your asset allocation deviates from your target percentages.
  **Real-time Price Monitoring**

Use the 0x Price Quote action to monitor specific token pairs and trigger alerts or automated trades when favorable market conditions arise.
  **Algorithmic Arbitrage**

Build high-speed workflows that fetch quotes via 0x and execute swaps instantly when price discrepancies are detected between different liquidity sources.
  **Smart Treasury Management**

Automate your DAO or corporate treasury operations by setting up workflows that convert excess stablecoins into target assets using optimized 0x routes.

## Connector Notes

- Create the connector from a trusted B3OS organization before publishing workflows that call external accounts.
- Keep OAuth tokens, API keys, bot tokens, channel IDs, and account IDs in connector settings or workflow props, not in reusable public template text.
- Test with the visual editor or `POST /v1/actions/{type}/test` before routing production traffic.

## Related Templates

| Template | Description | Tags |
| --- | --- | --- |
| [Clanker: Auto-take profit or stop loss on positions](https://b3os.org/templates/clanker-auto-take-profit-stop-loss) | Watches your open Clanker snipe positions and auto-sells the moment your take-profit or stop-... | defi, trading, wallet |
| [Clanker: Claim Rewards Recurrently](https://b3os.org/templates/clanker-claim-rewards-recurrently) | This workflow will run on a specified cadence, check a specified Clanker token contract to de... | - |

## FAQ

**How can I use B3OS to automate 0x swaps?**

You can trigger the 0x Swap action within a B3OS workflow based on custom conditions, such as price movements or time intervals, allowing for fully autonomous trading execution.
  **Can I fetch real-time market data using the 0x integration?**

Yes, the 0x Price Quote action allows you to pull accurate, real-time liquidity data and exchange rates directly into your automated workflows.
  **Do I need to write smart contracts to use 0x with B3OS?**

No, B3OS provides a no-code interface to interact with 0x protocols, enabling you to build complex trading logic without writing a single line of Solidity.
  **Is the 0x Price Quote action useful for arbitrage bots?**

Absolutely. By using the 0x Price Quote action, you can monitor price discrepancies across different pools and trigger automated responses when specific price thresholds are met.
  **How does B3OS ensure secure execution of 0x transactions?**

B3OS integrates securely with your preferred wallet infrastructure, ensuring that every 0x Swap action is executed according to your predefined workflow parameters and security constraints.