Back
Kalshi Market resolved. Alpaca Liquidate Positions.

Liquidate Alpaca positions when Kalshi market resolves

Connect

How this automation works

Liquidate your Alpaca positions automatically when a Kalshi market resolves. The Applet runs when the specified Kalshi market resolves to YES or NO and triggers Alpaca's Liquidate Positions action to close all open positions. Use this Applet to immediately remove exposure after a market outcome on Kalshi, ideal for traders managing risk with Alpaca.

If
Kalshi icon
Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the Kalshi market you specify resolves to YES or NO.
Ticker MarketTitle Result FinalPriceCents VolumeTotalDollars MarketUrl ResolvedAt
Then
Alpaca icon
Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will liquidate all open positions.

Services used in this Applet

Create your own Kalshi and Alpaca workflow

Create custom workflows effortlessly by selecting triggers, queries, and actions. With IFTTT, it's simple: “If this” trigger happens, “then that” action follows. Streamline tasks and save time with automated workflows that work for you.

7 triggers, queries, and actions

Market price crossed threshold

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a Kalshi market's YES price crosses the threshold percentage you specify.

Market resolved

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the Kalshi market you specify resolves to YES or NO.

Look up market by ticker

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns the current price, volume, and status of the Kalshi market you specify.

Markets for an event

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
Returns each market that belongs to a Kalshi event, with the current YES/NO price for each.

Cancel Open Orders

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will cancel all open orders.

Liquidate Positions

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will liquidate all open positions.

Place Market Order

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will place a new day market order for the given symbol, side and quantity.

Cancel Open Orders

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will cancel all open orders.

Liquidate Positions

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will liquidate all open positions.

Look up market by ticker

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns the current price, volume, and status of the Kalshi market you specify.

Market price crossed threshold

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a Kalshi market's YES price crosses the threshold percentage you specify.

Market resolved

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires when the Kalshi market you specify resolves to YES or NO.

Markets for an event

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
Returns each market that belongs to a Kalshi event, with the current YES/NO price for each.

Place Market Order

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action will place a new day market order for the given symbol, side and quantity.

Build an automation in seconds!

You can add delays, queries, and more actions in the next step!

More on Kalshi and Alpaca

About Kalshi

Kalshi is the first U.S. regulated event-contracts exchange, where you can track market prices on real-world events from elections to weather to economic indicators. Use Kalshi on IFTTT to get notified when market prices cross your thresholds and when events resolve.

Explore Kalshi

More integrations with Kalshi

About Alpaca

Alpaca allows you to trade stocks using every type of event. It also enables you to buy and/or sell stocks with various connected apps. Check out our Documentation for more! (Important Disclosures)

Explore Alpaca

More integrations with Alpaca

IFTTT helps all your apps and devices work better together

Get started for free