2021-04-06 15:23:26 -07:00
# Serum History
Collects and aggregates trades from serum dex for display in a tradingview chart.
This is powering the charts on [mango.markets ](https://mango.markets ).
Feel free to improve and extend for the benefit for the larger solana ecosystem.
2021-05-31 03:33:39 -07:00
** Note: This does not include a functioning trading view to inspect the
data.** Check the [mango markets gui code ](https://github.com/blockworks-foundation/mango-ui-v2/blob/main/components/TradingView/index.tsx ) for a reference how to use this API to display a TradingView.
2021-05-04 06:22:29 -07:00
## Configuration
* Markets: should be added to the dictionaries in src/index.ts
marketsV3 - for wrapped token denominated markets (deprecated)
nativeMarketsV3 - for native token denominated markets
* All other configuration should be handled via environment variables.
So far the following variables exist:
```
REDISCLOUD_URL: redis connection url
REDIS_MAX_CONN: maximum number of concurrent connections used by the redis pool
RPC_ENDPOINT_URL: solana rpc connection url
2021-06-20 12:48:13 -07:00
INTERVAL: time in seconds to wait between event queue polls
2021-05-04 06:22:29 -07:00
```
2021-04-06 15:23:26 -07:00
## Questions / Suggestions?
👋 Reach us on our [discord ](https://discord.gg/cbDHKCnGJU )