@goat-sdk/plugin-polymarket
v0.3.14
Published
<div align="center"> <a href="https://github.com/goat-sdk/goat">
Readme
Polymarket GOAT Plugin
Make bets and get market data from Polymarket.
Installation
npm install @goat-sdk/plugin-polymarket
yarn add @goat-sdk/plugin-polymarket
pnpm add @goat-sdk/plugin-polymarketUsage
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,
},
});Tools
- Get events
- Get market info
- Create order
- Get active orders
- Cancel order
- Cancel all orders
