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.
Block Preview
ByBit
⚠️ Derivatives trading, spot market, and futures
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- 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-inputPlaceholder: Your ByBit API Secret
Layout: full
Use Testnet
switchEnable for testing with fake funds
Layout: half
Operation
dropdownLayout: full
Options: Get Server Time, Get Kline/Candlestick, Get Latest Ticker, Get Order Book
Product Category
dropdownLayout: 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-inputPlaceholder: 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
dropdownLayout: half
Condition: operation = "get_kline"
Options: 1 Minute, 5 Minutes, 15 Minutes, 1 Hour
Limit
short-inputPlaceholder: 200
Layout: half
Condition: operation = ["get_kline","get_orderbook","get_recent_trades","get_order_history"]
Order Side
dropdownLayout: half
Condition: operation = "place_order"
Options: 🟢 Buy, 🔴 Sell
Order Type
dropdownLayout: half
Condition: operation = "place_order"
Options: Market, Limit
Quantity
short-inputPlaceholder: 0.01
Layout: half
Condition: operation = "place_order"
Price (for limit orders)
short-inputPlaceholder: 50000
Layout: half
Condition: operation = "place_order"
Time In Force
dropdownLayout: half
Condition: operation = "place_order"
Options: Good Till Cancel, Immediate or Cancel, Fill or Kill
Order ID
short-inputPlaceholder: Order ID to cancel
Layout: full
Condition: operation = "cancel_order"
Leverage
short-inputPlaceholder: 10 (1-100)
Layout: half
Condition: operation = "set_leverage"
Inputs (API)
apiKey
stringRequired
apiSecret
stringRequired
testnet
booleanOptional
operation
stringRequired
category
stringOptional
symbol
stringOptional
interval
stringOptional
limit
numberOptional
side
stringOptional
orderType
stringOptional
qty
stringOptional
price
stringOptional
timeInForce
stringOptional
orderId
stringOptional
leverage
stringOptional
Outputs
Primary response type:
{
"success": "boolean",
"data": "any"
}Tool Access
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.