> For the complete documentation index, see [llms.txt](https://learn.woo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.woo.org/user-guides/api-trading-on-woofi-pro.md).

# API trading on WOOFi Pro

How to connect and use the API to trade perps

WOOFi Pro APIs can connect to third-party applications and allow you to develop your own tools. The API for WOOFi Pro has many similarities to the WOO X API, making it easy for experienced traders to quickly get started.

1\) Get **Account Id, Orderly Key** ( API Key ) and **Orderly Secret** ( API Secret )

* Go to [https://pro.woofi.com/en/portfolio/api-key](https://woofi.com/en/portfolio/api-key)
* Click "Create API key"
* Confirm and get the credentials.

<figure><img src="https://1692387410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McghiWP3H5y-b9oQ6H6-887967055%2Fuploads%2F8eUVvnDGNDfmxALJLyrp%2Fimage.png?alt=media&amp;token=c3633d0d-e199-4d3b-af96-b27a32a2da2b" alt=""><figcaption><p>Portfolio - API key</p></figcaption></figure>

<figure><img src="https://1692387410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McghiWP3H5y-b9oQ6H6-887967055%2Fuploads%2F1smmkfYKWJDyxHWbqqq4%2Fimage.png?alt=media&amp;token=c1c595de-add1-4eba-8f52-502e85832941" alt=""><figcaption><p>Confirm and get API key</p></figcaption></figure>

2\) Integrating the API

Detailed docs are available at <https://orderly.network/docs/build-on-evm/evm-api/introduction>

**WOOFi Pro Mainnet:**&#x20;

* supported network (deposit/withdraw) : Arbitrum One
* chain\_id = 42161
* broker\_id = woofi\_pro
* base endpoint = [https://api-evm.orderly.org](https://testnet-api-evm.orderly.org)

**WOOFi Pro Testnet:**&#x20;

* supported network (deposit/withdraw) : Arbitrum Goerli&#x20;
* chain\_id = 421613
* broker\_id = woofi\_pro
* base endpoint = <https://testnet-api-evm.orderly.org>

Testnet USDC coin faucet

* Go to <https://testnet-pro.woofi.com/en/trade/ETH_PERP>
* Click the "Get test USDC" button and wait few minutes, your WOOFi account will get the test USDC

<figure><img src="https://1692387410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McghiWP3H5y-b9oQ6H6-887967055%2Fuploads%2FduSU4U8yES6RbQnxHzzE%2Fimage.png?alt=media&amp;token=62da290f-d99f-4be4-b396-1ddbbea5f6d8" alt=""><figcaption><p>Get test USDC</p></figcaption></figure>

3\) Getting started with CCXT

WOOFi Pro is integrated with CCXT, a popular library for crypto traders looking to work with new APIs and multiple exchanges.&#x20;

{% embed url="<https://github.com/ccxt/ccxt>" %}

Find the WOOFi Pro page here: <https://docs.ccxt.com/#/exchanges/woofipro>
