Make bets and get market data from Polymarket.
npm install @goat-sdk/plugin-polymarket
yarn add @goat-sdk/plugin-polymarket
pnpm add @goat-sdk/plugin-polymarket
Follow the instructions in the example to get your API key and start using the plugin:
import { polymarket } from "@goat-sdk/plugin-polymarket";
const plugin = polymarket({
credentials: {
key: process.env.POLYMARKET_API_KEY as string,
secret: process.env.POLYMARKET_SECRET as string,
passphrase: process.env.POLYMARKET_PASSPHRASE as string,
},
});
- Get events
- Get market info
- Create order
- Get active orders
- Cancel order
- Cancel all orders