UNPKG

pmarket-cli

Version:
20 lines 617 B
import { Side } from "@polymarket/clob-client"; export class SellStrategy { polymarketService; constructor(polymarketService) { this.polymarketService = polymarketService; } async execute(options) { const tokenId = options.sell[0]; const size = +options.sell[1]; const price = +options.sell[2]; try { const order = await this.polymarketService.marketOrder(tokenId, Side.SELL, size, price); console.log(order); } catch (error) { console.error(error); } } } //# sourceMappingURL=sell-strategy.js.map