Query editor
selecttx_hash, block_time, tx_from,account, market, collateral_token, is_long, false as is_open, size_in_usd, size_delta_usd, collateral_amount * collateral_token_price_max as collateral_usd, collateral_delta_amount * collateral_token_price_max as collateral_delta_usd, execution_price, base_pnl_usd as realized_pnl_usd, 0 as total_fees_usd, 0 as pnl_after_fees, 0 as funding_fee_usd, 0 as borrow_fee_usd, 0 as execution_fee_usd, size_in_usd / collateral_amount / collateral_token_price_max as leverage, false as liquidated, order_type as event_type, 0 as open_interest, collateral_amount, size_in_tokens, borrowing_factor, funding_fee_amount_per_size, size_delta_in_tokens, collateral_delta_amountfrom gmx_v2.position_decreasewhere blockchain='arbitrum' and account in ({{address}}) and block_time > TIMESTAMP '{{block_time}}' and block_time <= TIMESTAMP '{{block_time_end}}';