-
-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
coreCore sidecar/server logicCore sidecar/server logicenhancementNew feature or requestNew feature or requesttestingIssues related to testsIssues related to tests
Description
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
- Create
core/src/exchanges/mock/index.ts. - Implement the
BaseExchangeinterface. - Provide 'realistic but fake' data for
fetchMarkets,fetchOrderBook, andfetchBalance. - Simulate order execution (e.g.,
createOrderalways returns a 'success' after 100ms).
Easy Way to Get Started
- Look at
core/src/BaseExchange.tsto see the required methods. - Copy the structure of
core/src/exchanges/polymarket/index.tsbut replace all HTTP calls withPromise.resolve()and local JSON data.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
coreCore sidecar/server logicCore sidecar/server logicenhancementNew feature or requestNew feature or requesttestingIssues related to testsIssues related to tests