What do you want to automate

with ifthenpay and Alpaca?

Prompt, edit and deploy AI agents that connect to ifthenpay, Alpaca and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Cancel All Orders with Alpaca API on New Payment Completed from ifthenpay API
ifthenpay + Alpaca
 
Try it
Cancel Order with Alpaca API on New Payment Completed from ifthenpay API
ifthenpay + Alpaca
 
Try it
Close All Positions with Alpaca API on New Payment Completed from ifthenpay API
ifthenpay + Alpaca
 
Try it
Close Position with Alpaca API on New Payment Completed from ifthenpay API
ifthenpay + Alpaca
 
Try it
Get Account Info with Alpaca API on New Payment Completed from ifthenpay API
ifthenpay + Alpaca
 
Try it
New Payment Completed from the ifthenpay API

Emit new event when a payment is successfully completed through Ifthenpay. See the documentation

 
Try it
Create Payment Reference with the ifthenpay API

Generates a Multibanco or MB WAY payment reference with a specified amount, entity code, and deadline. See the documentation

 
Try it
Cancel All Orders with the Alpaca API

Attempts to cancel all open orders. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server reject the request, See the docs

 
Try it
Issue Refund with the ifthenpay API

Issue a full or partial refund for a previously completed payment via Ifthenpay. See the documentation

 
Try it
Cancel Order with the Alpaca API

Attempts to cancel an open order. If the order is no longer cancelable (example: status=filled), the server will reject the request, See the docs

 
Try it
Close All Positions with the Alpaca API

Closes (liquidates) all of the account’s open long and short positions. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server will reject the request, See the docs

 
Try it
Integrate the ifthenpay API with the Alpaca API
Setup the ifthenpay API trigger to run a workflow which integrates with the Alpaca API. Pipedream's integration platform allows you to integrate ifthenpay and Alpaca remarkably fast. Free for developers.

Connect ifthenpay

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ifthenpay: {
      type: "app",
      app: "ifthenpay",
    }
  },
  async run({steps, $}) {
    const data = {
      "boKey": `${this.ifthenpay.$auth.backoffice_key}`,
      "dateStart": `21-10-2024 00:00:00`,
      "dateEnd": `30-04-2025 00:00:00`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.ifthenpay.com/v2/payments/read`,
      headers: {
        "accept": `application/json`,
      },
      data,
    })
  },
})

Overview of Alpaca

Alpaca API allows you to harness the power of automated trading by providing an interface to manage your stock and equity portfolio through simple API calls. It's particularly suited for building trading bots, algorithmic trading strategies, or just automating interactions with your investment portfolio. Whether you're looking to place trades based on specific market conditions, automatically adjust your portfolio in response to certain triggers, or simply streamline your investment activities, Alpaca's trading API offers a robust solution.

Connect Alpaca

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    alpaca: {
      type: "app",
      app: "alpaca",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.alpaca.markets/v2/account`,
      headers: {
        Authorization: `Bearer ${this.alpaca.$auth.oauth_access_token}`,
      },
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo