> For the complete documentation index, see [llms.txt](https://defunds.gitbook.io/defunds/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://defunds.gitbook.io/defunds/defunds-api.md).

# DeFunds API

Page for developers

## API test guideline (Optimism Goerli Testnet)

1. Add [Optimism Goerli Testnet](https://chainlist.org/chain/420) network to your wallet
2. Get Optimism Goerli ETH
3. Mint test [USDT](https://goerli-optimism.etherscan.io/token/0x8b02fe3ae72c79ad04a2fcf2ad3afb859f6e8655?a=0x4829163d3e3fb8ea76dbe9d3214beae0592fecba#writeContract)
4. [Create new fund](https://dev.defunds.co/#/fund/create)
5. Copy Fund ID from the fund URL. Example: <https://dev.defunds.co/#/market/0xe8307970e65f4d2ab98c662ce22239cf> Where `0xe8307970e65f4d2ab98c662ce22239cf` is Fund ID
6. Check code examples. Use the Fund ID from step 6 and the private key you created the fund from.
7. Swap tokens, enjoy

## REST API

* [Docs and examples](https://bitbucket.org/defi-etf/api/src/master/)
* [Swagger](https://app.defunds.co/api/swagger/index.html#/)
