https://github.com/blockworks-foundation/serum-history
Collect and aggregate trades from serum dex for display in tradingview
https://github.com/blockworks-foundation/serum-history
Last synced: about 1 month ago
JSON representation
Collect and aggregate trades from serum dex for display in tradingview
- Host: GitHub
- URL: https://github.com/blockworks-foundation/serum-history
- Owner: blockworks-foundation
- License: mit
- Created: 2021-02-15T12:46:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-28T14:28:00.000Z (almost 3 years ago)
- Last Synced: 2025-03-28T09:11:10.587Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://mango.markets
- Size: 387 KB
- Stars: 42
- Watchers: 3
- Forks: 33
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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.** 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.## 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
INTERVAL: time in seconds to wait between event queue polls
```## Questions / Suggestions?
👋 Reach us on our [discord](https://discord.gg/cbDHKCnGJU)