Interface: TradeExecutedEvent
Gala Launchpad SDK 9.0.0-rc.5 / index / TradeExecutedEvent
Interface: TradeExecutedEvent
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:140
Emitted when a trade is executed on a bonding curve (buy/sell). Broadcast to token room. High-frequency event - may be throttled (1 per second per token).
Since
7.1.0 - Extended with holderDelta and holderCount for real-time holdings support
Properties
candle?
optionalcandle?:object
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:179
Optional 1-minute candle data for price tracking
close
close:
number
Closing price at end of minute
high
high:
number
Highest price during the minute
low
low:
number
Lowest price during the minute
open
open:
number
Opening price during the minute
resolution
resolution:
number
Candle resolution in seconds (60 for 1-minute)
startTime
startTime:
number
Unix timestamp of candle start (seconds)
volume
volume:
number
Trading volume during the minute
holderCount?
optionalholderCount?:number
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:177
Optional current total holder count for the token
holderDelta?
optionalholderDelta?:object
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:164
Optional holder rank information including balance and rank change
balance
balance:
string
New balance after the trade
previousRank?
optionalpreviousRank?:number
Previous rank before this trade (undefined if new holder)
rank
rank:
number
Current rank among all holders (1 = largest holder)
type
type:
"NEW_HOLDER"|"EXITED_HOLDER"|"BALANCE_CHANGED"
Type of holder change: NEW_HOLDER, EXITED_HOLDER, or BALANCE_CHANGED
userAddress
userAddress:
string
Wallet address of the holder whose position changed
icon?
optionalicon?:string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:162
The token's icon URL (sent with symbol)
inputAmount
inputAmount:
string|number
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:150
Amount of input currency (string or number)
newMarketCap?
optionalnewMarketCap?:string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:156
Optional new market cap after the trade
newPrice?
optionalnewPrice?:string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:154
Optional new token price after the trade
outputAmount
outputAmount:
string|number
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:152
Amount of output currency (string or number)
symbol?
optionalsymbol?:string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:160
The token's symbol (sent so a listing can update without a refetch)
timestamp
timestamp:
string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:158
ISO 8601 timestamp of when the trade occurred
tokenName
tokenName:
string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:142
Token name for which the trade occurred
tradeType
tradeType:
"BUY"|"SELL"
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:146
Trade type: BUY or SELL
txnId?
optionaltxnId?:string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:144
Optional transaction ID
userAddress
userAddress:
string
Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:148
Wallet address of the trader