# Best Practices

### Best Practices

#### Security

* Store API keys in environment variables.
* Use HTTPS for all requests.
* Rotate keys regularly.
* Use separate keys for development and production.
* Never commit API keys to version control.
* Never share API keys publicly.

#### Error Handling

* Always check the `success` field in responses.
* Implement retry logic for transient errors.
* Handle rate limiting gracefully by respecting the `RateLimit-Reset` header.

#### Trading

* Set appropriate slippage tolerance based on market volatility.

***

### Support & Resources

#### Developer Resources

* **Swagger API Reference:** [api.dexodus.finance/docs](https://api.dexodus.finance/docs)
* **Protocol Documentation:** [docs.dexodus.finance](https://docs.dexodus.finance)

#### Community

* **Discord:** [discord.gg/dexodusFinance](https://discord.gg/dexodusFinance)
* **X (Twitter):** [@DexodusFinance](https://x.com/DexodusAI)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dexodus.finance/trading-api/best-practices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
