Purpose / Goal
Allow developers to build applications using PMXT without needing real API keys or internet access. This is essential for CI/CD environments and rapid UI prototyping.
Tasks
Easy Way to Get Started
- Look at
core/src/BaseExchange.ts to see the required methods.
- Copy the structure of
core/src/exchanges/polymarket/index.ts but replace all HTTP calls with Promise.resolve() and local JSON data.
Purpose / Goal
Allow developers to build applications using PMXT without needing real API keys or internet access. This is essential for CI/CD environments and rapid UI prototyping.
Tasks
core/src/exchanges/mock/index.ts.BaseExchangeinterface.fetchMarkets,fetchOrderBook, andfetchBalance.createOrderalways returns a 'success' after 100ms).Easy Way to Get Started
core/src/BaseExchange.tsto see the required methods.core/src/exchanges/polymarket/index.tsbut replace all HTTP calls withPromise.resolve()and local JSON data.