Skip to main content
This topic is responsible for notifying the user when a fiat or cryptocurrency withdrawal occurs.
This is an authenticated stream. You must provide a valid ticket from authentication to subscribe.

Subscription Request

string
required
Subscribe method. Must be subscribe
array
required
Array of topics to subscribe to. Must include withdrawalExample: ["withdrawal"]
string
required
Ticket created using the endpoint POST https://api.ripio.com/trade/ticket

Stream Response

integer
Each WebSocket message includes a sequential numeric id. Each topic has its own unique sequence, and for private topics, the sequence is unique to each topic and user. It’s important to note that some topics will send a “welcome message”, which will have an id value of -1. Additionally, this sequence may be reset between connections, so be sure to update this value locally whenever you reconnect.
string
Topic name (always withdrawal)
integer
Timestamp in milliseconds
object
Withdrawal details object

Subscription Example

Stream Response Example - Cryptocurrency Withdrawal

Stream Response Example - Fiat Withdrawal

Withdrawal Status Lifecycle

  • pending: Withdrawal request created but not yet processed
  • confirmed: Withdrawal sent and confirmed
  • failed: Withdrawal failed and was not sent

Withdrawal Types

External Withdrawals

  • To external blockchain addresses
  • Requires blockchain confirmation
  • Include miner fees
  • Network dependent timing
  • Bitcoin: ~10 minutes (6 confirmations)
  • Ethereum: ~2 minutes (12 confirmations)

Internal Transfers

  • Between BitcoinTrade accounts
  • No blockchain involved
  • No miner fees
  • Confirm immediately
  • Marked with is_internal: true

Fee Structure

Platform Fee

  • BitcoinTrade withdrawal fee
  • Shown in fee field
  • May vary by currency
  • Deducted from withdrawal

Network Fee

  • Blockchain miner fee
  • Shown in miner_fee field
  • For external withdrawals only
  • Varies with network congestion

Total Cost

Total deducted = Platform fee + Miner fee

Key Fields

Blockchain Networks

Timing by Currency

Calculation Examples

Usage Notes

  • Authentication Required: Requires valid ticket from WebSocket authentication
  • Real-time Updates: Receive notification when withdrawal is processed
  • Multiple Notifications: Receive updates as status changes (pending → confirmed)
  • Network Variable: Confirmation time depends on blockchain network
  • Fee Information: Both platform and miner fees shown

Pending vs Confirmed

  • Pending: Withdrawal submitted but not yet on blockchain
  • Confirmed: Transaction sent to blockchain and confirmed
  • Recommended: Wait for confirmed status before considering funds received

Use Cases

  • Fund Tracking: Monitor outgoing funds
  • Balance Updates: Update balance when withdrawal completes
  • Withdrawal Confirmation: Confirm withdrawal success
  • Fee Accounting: Record fees paid
  • Transaction History: Build withdrawal history
  • Compliance: Track all withdrawals for reporting