Alpaca

Commission-Free API First Stock Brokerage

Integrate the Alpaca API with the Telegram Bot API

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

Cancel All Orders with Alpaca API on New Bot Command Received (Instant) from Telegram Bot API
Telegram Bot + Alpaca
 
Try it
Cancel All Orders with Alpaca API on New Channel Updates (Instant) from Telegram Bot API
Telegram Bot + Alpaca
 
Try it
Cancel All Orders with Alpaca API on New Message Updates (Instant) from Telegram Bot API
Telegram Bot + Alpaca
 
Try it
Cancel All Orders with Alpaca API on New Updates (Instant) from Telegram Bot API
Telegram Bot + Alpaca
 
Try it
Cancel Order with Alpaca API on New Bot Command Received (Instant) from Telegram Bot API
Telegram Bot + Alpaca
 
Try it
New Bot Command Received (Instant) from the Telegram Bot API

Emit new event each time a Telegram Bot command is received.

 
Try it
New Channel Updates (Instant) from the Telegram Bot API

Emit new event each time a channel post is created or updated.

 
Try it
New Message Updates (Instant) from the Telegram Bot API

Emit new event each time a Telegram message is created or updated.

 
Try it
New Updates (Instant) from the Telegram Bot API

Emit new event for each new Telegram event.

 
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
Create Chat Invite Link with the Telegram Bot API

Create an additional invite link for a chat, See the docs for more information

 
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
Delete a Message with the Telegram Bot API

Deletes a message. See the docs for more information

 
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

Overview of Alpaca

Alpaca is a financial technology company that offers a commission-free API for
trading and investing. With Alpaca, you can build trading and investing
applications for the web, mobile, and desktop.

Here are some examples of what you can build with Alpaca:

  • A trading platform that lets users buy and sell stocks and other assets
  • An investing app that helps users manage their portfolios
  • A financial newsfeed that provides real-time market data
  • A stock market simulator that lets users practice trading without risk
  • A financial planning tool that helps users save for their future

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}`,
      },
    })
  },
})

Overview of Telegram Bot

With the Telegram Bot API, you can build bots that perform a variety of tasks,
including:

  • Sending and receiving messages
  • Social networking
  • Content management
  • File sharing
  • Location sharing
  • Bot administration
  • And more!

Connect Telegram Bot

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    telegram_bot_api: {
      type: "app",
      app: "telegram_bot_api",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.telegram.org/bot${this.telegram_bot_api.$auth.token}/getMe`,
    })
  },
})