Blocks

ByBit

⚠️ Derivatives trading, spot market, and futures

Connect to ByBit API for cryptocurrency derivatives trading, spot trading, and futures contracts. Access market data, execute trades, manage positions, and track order history. Supports perpetual contracts, inverse futures, and spot trading. Uses API key authentication. ⚠️ REGULATORY NOTICE: This integration is for authorized use only. Derivatives and futures trading carries extremely high financial risk and may result in total loss. Users must comply with all applicable regulations. Not available in restricted jurisdictions.

Back to Catalog
Toolsbybit

Block Preview

ByBit

⚠️ Derivatives trading, spot market, and futures

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the bybit block with monitoring enabled in production.

Inputs (UI)

API Key

short-input

⚠️ Keep your API keys secure. Use testnet for testing.

Placeholder: Your ByBit API Key

Layout: full

API Secret

short-input

Placeholder: Your ByBit API Secret

Layout: full

Use Testnet

switch

Enable for testing with fake funds

Layout: half

Operation

dropdown

Layout: full

Options: Get Server Time, Get Kline/Candlestick, Get Latest Ticker, Get Order Book

Product Category

dropdown

Layout: half

Condition: operation = ["get_ticker","get_orderbook","get_kline","get_recent_trades","get_wallet_balance","get_positions","get_active_orders","place_order","cancel_order","set_leverage"]

Options: Spot, USDT Perpetual, Inverse Perpetual, Options

Symbol

short-input

Placeholder: BTCUSDT, ETHUSDT

Layout: half

Condition: operation = ["get_ticker","get_orderbook","get_kline","get_recent_trades","get_positions","get_active_orders","place_order","set_leverage","get_funding_rate"]

Kline Interval

dropdown

Layout: half

Condition: operation = "get_kline"

Options: 1 Minute, 5 Minutes, 15 Minutes, 1 Hour

Limit

short-input

Placeholder: 200

Layout: half

Condition: operation = ["get_kline","get_orderbook","get_recent_trades","get_order_history"]

Order Side

dropdown

Layout: half

Condition: operation = "place_order"

Options: 🟢 Buy, 🔴 Sell

Order Type

dropdown

Layout: half

Condition: operation = "place_order"

Options: Market, Limit

Quantity

short-input

Placeholder: 0.01

Layout: half

Condition: operation = "place_order"

Price (for limit orders)

short-input

Placeholder: 50000

Layout: half

Condition: operation = "place_order"

Time In Force

dropdown

Layout: half

Condition: operation = "place_order"

Options: Good Till Cancel, Immediate or Cancel, Fill or Kill

Order ID

short-input

Placeholder: Order ID to cancel

Layout: full

Condition: operation = "cancel_order"

Leverage

short-input

Placeholder: 10 (1-100)

Layout: half

Condition: operation = "set_leverage"

Inputs (API)

apiKey

string

Required

apiSecret

string

Required

testnet

boolean

Optional

operation

string

Required

category

string

Optional

symbol

string

Optional

interval

string

Optional

limit

number

Optional

side

string

Optional

orderType

string

Optional

qty

string

Optional

price

string

Optional

timeInForce

string

Optional

orderId

string

Optional

leverage

string

Optional

Outputs

Primary response type:

{
  "success": "boolean",
  "data": "any"
}

Tool Access

bybit_api

Compliance Notice

EXTREME RISK WARNING: Derivatives and futures trading carries exceptionally high financial risk and may result in total loss exceeding initial capital due to leverage. This block is intended for experienced traders only. Users must comply with all applicable financial regulations, KYC/AML requirements, and derivatives trading laws. ByBit services are restricted in numerous jurisdictions. Margin trading and leveraged products are extremely risky and may not be suitable for all investors. Users are solely responsible for ensuring compliance with local laws and regulations.

crypto_tradingfinancial_tradinghigh_riskregulatedkyc_requiredregion_restricted
ByBit | NowFlow Blocks