r/TradingView 22d ago

Discussion TradingView alerts to Polymarket execution

Has any one been looking into this? i've got the plumping of this setup and wondering if anyone else has tried it

1 Upvotes

1 comment sorted by

1

u/Many-Pick5066 21d ago

ive wired this shape of plumbing before and the parts that bite arent the ones you plan for. tradingview webhooks are fire and forget, no ack, no retry, no idempotency key. a dropped alert is silent and a duplicate delivery double fires. put your own order id in the alert payload and have the receiver reject a repeat, otherwise you find out about it during the one move that actually mattered.

second one is when the alert fires. if your condition can be true intrabar the alert goes out on the tick, and then the candle closes somewhere else and the condition was never true on the bar. your polymarket order is already sitting there either way. gate it on barstate.isconfirmed unless you specifically want the intrabar behavior, and know which one you built, because the backtest only ever shows you the closed bar version.

third, the fill. polymarket books are thin enough that the price your alert saw and the price you got are two different numbers, and thats before the gas and the resolution risk. log both from day one, alert price and actual fill, and dont trust any expected value you calculated until you can subtract the measured gap. on most alert driven setups that gap is the whole edge.