I set up local 0x testnet as described here-- https://0x.org/docs/guides/setting-up-a-local-0x-testnet. That works great. The document also states that the local testnet is pre-setup with dummy tokens.
However, I can't call https://api.0x.org/swap/v1/quote?...
because it, of course, doesn't know about the dummy tokens (calls return "insufficient liquidity" error message). I have two questions about this:
- How can I set up a local API instance on my dev machine and populate with test liquidity for the dummy tokens?
- Is there a different best practice for integrating with 0x in dev? (Maybe instead of setting up a local testnet I should do something else?)
Thanks!