# Trade

Endpoints related to trading and token information

## List all supported tokens

> Returns a list of all tokens supported by the Madra Finance platform.

```json
{"openapi":"3.0.3","info":{"title":"Madra Finance Trade API","version":"1.0.0"},"tags":[{"name":"Trade","description":"Endpoints related to trading and token information"}],"servers":[{"url":"https://platform.madra.finance","description":"Production environment"}],"paths":{"/api/trade/tokens/all":{"get":{"tags":["Trade"],"summary":"List all supported tokens","description":"Returns a list of all tokens supported by the Madra Finance platform.","operationId":"getAllTokens","responses":{"200":{"description":"Successful retrieval of tokens","content":{"application/json":{"schema":{"type":"object","properties":{"allTokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal database token ID"},"tokenId":{"type":"string","description":"Token identifier"},"name":{"type":"string","description":"Token name"},"symbol":{"type":"string","description":"Token symbol"},"currencyCode":{"type":"string","description":"Currency code associated with the token"},"countryCode":{"type":"string","description":"Country code associated with the currency"},"currencyName":{"type":"string","description":"Name of the currency"},"decimals":{"type":"string","description":"Number of decimals as a string"},"type":{"type":"string","description":"Type of the token"},"initialSupply":{"type":"string","description":"Initial supply of the token as string"},"maxSupply":{"type":["number","null"],"nullable":true,"description":"Maximum supply of the token, nullable"},"supplyType":{"type":"string","description":"Type of supply"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the token was created"},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp when the token was last updated"}},"required":["id","tokenId","name","symbol","currencyCode","countryCode","currencyName","decimals","type","initialSupply","supplyType","createdAt","updatedAt"]}}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}}}
```
