← Schedule + BitMEX integrations

Create Order with BitMEX API on Monthly Schedule from Schedule API

Pipedream makes it easy to connect APIs for BitMEX, Schedule and 3,000+ other apps remarkably fast.

Trigger workflow on
Monthly Schedule from the Schedule API
Next, do this
Create Order with the BitMEX API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

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

Developers Pipedream

Getting Started

This integration creates a workflow with a Schedule trigger and BitMEX action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the Monthly Schedule trigger
    1. Connect your Schedule account
    2. Configure Cron Schedule
  3. Configure the Create Order action
    1. Connect your BitMEX account
    2. Select a Symbol
    3. Optional- Configure Strategy
    4. Optional- Select a Side
    5. Optional- Configure Order Quantity
    6. Optional- Configure Price
    7. Optional- Configure Display Quantity
    8. Optional- Configure Stop Price
    9. Optional- Configure Client Order ID
    10. Optional- Configure Client Order Link ID
    11. Optional- Configure Peg Offset Value
    12. Optional- Select a Peg Price Type
    13. Optional- Select a Order Type
    14. Optional- Select a Time In Force
    15. Optional- Configure Execution Instructions
    16. Optional- Select a Contingency Type
    17. Optional- Configure Text
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Trigger your workflow on one or more days each month at a specific time (with timezone support).
Version:0.0.2
Key:schedule-monthly

Schedule Overview

The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.

Trigger Code

import schedule from "../../schedule.app.mjs";

export default {
  name: "Monthly Schedule",
  version: "0.0.2",
  key: "schedule-monthly",
  type: "source",
  description: "Trigger your workflow on one or more days each month at a specific time (with timezone support).",
  props: {
    schedule,
    cron: {
      propDefinition: [
        schedule,
        "cron",
      ],
      default: {
        cron: "0 10 1 * *",
      },
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
SchedulescheduleappThis component uses the Schedule app.
Cron Schedulecron$.interface.timer

Enter a cron expression

Trigger Authentication

The Schedule API does not require authentication.

About Schedule

Trigger workflows on an interval or cron schedule.

Action

Description:Submit a new trading order in your BitMEX account. [See the documentation](https://www.bitmex.com/api/explorer/#!/Order/Order_new)
Version:0.0.1
Key:bitmex-create-order

Action Code

import bitmex from "../../bitmex.app.mjs";

export default {
  key: "bitmex-create-order",
  name: "Create Order",
  description: "Submit a new trading order in your BitMEX account. [See the documentation](https://www.bitmex.com/api/explorer/#!/Order/Order_new)",
  version: "0.0.1",
  annotations: {
    destructiveHint: true,
    openWorldHint: false,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    bitmex,
    symbol: {
      propDefinition: [
        bitmex,
        "symbol",
      ],
    },
    strategy: {
      type: "string",
      label: "Strategy",
      description: "Order strategy. e.g. 'OneWay', 'Long', 'Short'",
      optional: true,
    },
    side: {
      type: "string",
      label: "Side",
      description: "Order side. Valid options: Buy, Sell. Defaults to 'Buy' unless `orderQty` is negative",
      optional: true,
      options: [
        "Buy",
        "Sell",
      ],
    },
    orderQty: {
      type: "integer",
      label: "Order Quantity",
      description: "Order quantity in units of the instrument (i.e. contracts, for spot it is base currency in minor currency for spot (e.g. XBt quantity for XBT))",
      optional: true,
    },
    price: {
      type: "string",
      label: "Price",
      description: "Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders",
      optional: true,
    },
    displayQty: {
      type: "integer",
      label: "Display Quantity",
      description: "Optional quantity to display in the book. Use 0 for a fully hidden order.",
      optional: true,
    },
    stopPx: {
      type: "string",
      label: "Stop Price",
      description: "Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders. Use `execInst` of 'MarkPrice' or 'LastPrice' to define the current price used for triggering.",
      optional: true,
    },
    clOrdID: {
      type: "string",
      label: "Client Order ID",
      description: "Optional Client Order ID. This clOrdID will come back on the order and any related executions.",
      optional: true,
    },
    clOrdLinkID: {
      type: "string",
      label: "Client Order Link ID",
      description: "Optional Client Order Link ID for contingent orders",
      optional: true,
    },
    pegOffsetValue: {
      type: "string",
      label: "Peg Offset Value",
      description: "Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders.",
      optional: true,
    },
    pegPriceType: {
      type: "string",
      label: "Peg Price Type",
      description: "Optional peg price type. Valid options: MarketPeg, PrimaryPeg, TrailingStopPeg",
      optional: true,
      options: [
        "MarketPeg",
        "PrimaryPeg",
        "TrailingStopPeg",
      ],
    },
    ordType: {
      type: "string",
      label: "Order Type",
      description: "Order type. Valid options: Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, Pegged. Defaults to 'Limit' when `price` is specified. Defaults to 'Stop' when `stopPx` is specified. Defaults to 'StopLimit' when `price` and `stopPx` are specified.",
      optional: true,
      default: "Limit",
      options: [
        "Market",
        "Limit",
        "Stop",
        "StopLimit",
        "MarketIfTouched",
        "LimitIfTouched",
        "Pegged",
      ],
    },
    timeInForce: {
      type: "string",
      label: "Time In Force",
      description: "Time in force. Valid options: Day, GoodTillCancel, ImmediateOrCancel, FillOrKill. Defaults to 'GoodTillCancel' for 'Limit', 'StopLimit', and 'LimitIfTouched' orders.",
      optional: true,
      options: [
        "Day",
        "GoodTillCancel",
        "ImmediateOrCancel",
        "FillOrKill",
      ],
    },
    execInst: {
      type: "string",
      label: "Execution Instructions",
      description: "Optional execution instructions. Valid options: ParticipateDoNotInitiate, AllOrNone, MarkPrice, IndexPrice, LastPrice, Close, ReduceOnly, Fixed, LastWithinMark. 'AllOrNone' instruction requires `displayQty` to be 0. 'MarkPrice', 'IndexPrice' or 'LastPrice' instruction valid for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. 'LastWithinMark' instruction valid for 'Stop' and 'StopLimit' with instruction 'LastPrice'. IndexPrice, LastWithMark, Close and ReduceOnly are not applicable to spot trading symbols.",
      optional: true,
    },
    contingencyType: {
      type: "string",
      label: "Contingency Type",
      description: "Optional contingency type for use with `clOrdLinkID`. Valid options: OneCancelsTheOther, OneTriggersTheOther.",
      optional: true,
      options: [
        "OneCancelsTheOther",
        "OneTriggersTheOther",
      ],
    },
    text: {
      type: "string",
      label: "Text",
      description: "Optional order annotation. e.g. 'Take profit'",
      optional: true,
    },
  },
  async run({ $ }) {
    const response = await this.bitmex.createOrder({
      symbol: this.symbol,
      strategy: this.strategy,
      side: this.side,
      orderQty: this.orderQty,
      price: this.price,
      displayQty: this.displayQty,
      stopPx: this.stopPx,
      clOrdID: this.clOrdID,
      clOrdLinkID: this.clOrdLinkID,
      pegOffsetValue: this.pegOffsetValue,
      pegPriceType: this.pegPriceType,
      ordType: this.ordType,
      timeInForce: this.timeInForce,
      execInst: this.execInst,
      contingencyType: this.contingencyType,
      text: this.text,
    });

    $.export("$summary", `Successfully created order${response.orderID
      ? ` with ID: ${response.orderID}`
      : ""}`);
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
BitMEXbitmexappThis component uses the BitMEX app.
SymbolsymbolstringSelect a value from the drop down menu.
Strategystrategystring

Order strategy. e.g. 'OneWay', 'Long', 'Short'

SidesidestringSelect a value from the drop down menu:BuySell
Order QuantityorderQtyinteger

Order quantity in units of the instrument (i.e. contracts, for spot it is base currency in minor currency for spot (e.g. XBt quantity for XBT))

Pricepricestring

Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders

Display QuantitydisplayQtyinteger

Optional quantity to display in the book. Use 0 for a fully hidden order.

Stop PricestopPxstring

Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders. Use execInst of 'MarkPrice' or 'LastPrice' to define the current price used for triggering.

Client Order IDclOrdIDstring

Optional Client Order ID. This clOrdID will come back on the order and any related executions.

Client Order Link IDclOrdLinkIDstring

Optional Client Order Link ID for contingent orders

Peg Offset ValuepegOffsetValuestring

Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders.

Peg Price TypepegPriceTypestringSelect a value from the drop down menu:MarketPegPrimaryPegTrailingStopPeg
Order TypeordTypestringSelect a value from the drop down menu:MarketLimitStopStopLimitMarketIfTouchedLimitIfTouchedPegged
Time In ForcetimeInForcestringSelect a value from the drop down menu:DayGoodTillCancelImmediateOrCancelFillOrKill
Execution InstructionsexecInststring

Optional execution instructions. Valid options: ParticipateDoNotInitiate, AllOrNone, MarkPrice, IndexPrice, LastPrice, Close, ReduceOnly, Fixed, LastWithinMark. 'AllOrNone' instruction requires displayQty to be 0. 'MarkPrice', 'IndexPrice' or 'LastPrice' instruction valid for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. 'LastWithinMark' instruction valid for 'Stop' and 'StopLimit' with instruction 'LastPrice'. IndexPrice, LastWithMark, Close and ReduceOnly are not applicable to spot trading symbols.

Contingency TypecontingencyTypestringSelect a value from the drop down menu:OneCancelsTheOtherOneTriggersTheOther
Texttextstring

Optional order annotation. e.g. 'Take profit'

Action Authentication

BitMEX uses API keys for authentication. When you connect your BitMEX account, Pipedream securely stores the keys so you can easily authenticate to BitMEX APIs in both code and no-code steps.

About BitMEX

Crypto Derivatives Exchange

More Ways to Connect BitMEX + Schedule

Create Order with BitMEX API on Daily schedule from Schedule API
Schedule + BitMEX
 
Try it
Create Order with BitMEX API on Weekly schedule from Schedule API
Schedule + BitMEX
 
Try it
Create Order with BitMEX API on Custom Interval from Schedule API
Schedule + BitMEX
 
Try it
Get User Wallet with BitMEX API on Daily schedule from Schedule API
Schedule + BitMEX
 
Try it
Get User Wallet with BitMEX API on Weekly schedule from Schedule API
Schedule + BitMEX
 
Try it
Custom Interval from the Schedule API

Trigger your workflow every N hours, minutes or seconds.

 
Try it
Daily schedule from the Schedule API

Trigger your workflow every day.

 
Try it
Monthly Schedule from the Schedule API

Trigger your workflow on one or more days each month at a specific time (with timezone support).

 
Try it
Weekly schedule from the Schedule API

Trigger your workflow on one or more days each week at a specific time (with timezone support).

 
Try it
New Executed Trade from the BitMEX API

Emit new event when a balance‑affecting execution (trade fill, settlement, realized PnL) occurs in your BitMEX account. See the documentation

 
Try it
Create Order with the BitMEX API

Submit a new trading order in your BitMEX account. See the documentation

 
Try it
Get User Wallet with the BitMEX API

Retrieve your current wallet information from BitMEX. See the documentation

 
Try it
List Trades with the BitMEX API

Retrieve a list of executed trades from your BitMEX account. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.