Thank you for your interest in polymarket-sdk-cpp!
git clone https://github.com/Wammero/polymarket-sdk-cpp.git
cd polymarket-sdk-cpp
cmake -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build -j$(nproc)
ctest --test-dir build --output-on-failure- Fork the repo and create a feature branch from
main - Add tests for any new functionality
- Ensure all existing tests pass:
ctest --test-dir build - Run with sanitizers before submitting:
cmake -B build-asan -DCMAKE_BUILD_TYPE=Debug -DPOLYMARKET_ENABLE_ASAN=ON cmake --build build-asan -j$(nproc) ctest --test-dir build-asan - Keep commits focused — one logical change per PR
- C++23, no exceptions across API boundaries (use
Result<T>) - Header-only where possible (except
ws_client.cpp) - No raw
new/delete— use Arena, SmallVector, RAII - No
std::cout— useprintfin examples - Match existing patterns in the codebase
- Unit tests:
tests/unit/— no network, fast, deterministic - Integration tests:
tests/integration/test_api.cpp— uses Python mock server - Live smoke tests:
tests/integration/test_live_api.cpp— read-only prod queriesPOLYMARKET_LIVE_TESTS=1 ./build/tests/test_live_api
Open an issue with:
- What you expected vs what happened
- Minimal reproduction steps
- Compiler version and OS