Eman-Raztransfers from
    Updated 6 hours ago
    -- WithdrawEvent

    with tab1 as (select block_timestamp, amount, account_address, tx_hash
    from aptos.core.fact_transfers
    where success='true' and TRANSFER_EVENT='DepositEvent'
    AND token_address='0x1::aptos_coin::AptosCoin'),

    tab2 as (select address, address_name
    from aptos.core.dim_labels
    where LABEL_TYPE='cex'
    order by 1)

    select date_trunc('{{Time_Frame}}',block_timestamp) as "Date", sum(amount)/pow(10,8) as "Transfer_From Volume",
    count(distinct tx_hash) as "Transfer_From Count", address_name as "CEX"
    from tab1 LEFT JOIN tab2 on tab1.account_address=tab2.address
    where block_timestamp::date>='{{Start_Date}}' and block_timestamp::date<='{{End_Date}}' and address_name is not null
    group by 1,4
    order by 1

    Last run: about 6 hours agoAuto-refreshes every 24 hours
    Date
    Transfer_From Volume
    Transfer_From Count
    CEX
    1
    2023-01-01 00:00:00.000990746.889091591361gate.io deposit_wallet
    2
    2023-01-01 00:00:00.000112380.4749564686bitfinex deposit_wallet
    3
    2023-01-01 00:00:00.000670914.94416943173coinbase deposit_wallet
    4
    2023-01-01 00:00:00.0005509601.762032867552okx deposit_wallet
    5
    2023-01-01 00:00:00.00077463.97580428424bitget
    6
    2023-01-01 00:00:00.00029491587.013067554005binance deposit_wallet
    7
    2023-01-01 00:00:00.000453336.268441135276mexc deposit_wallet
    8
    2023-01-01 00:00:00.000454619.709574114983mexc
    9
    2023-01-01 00:00:00.000741472.51737056452kraken
    10
    2023-01-01 00:00:00.0001807096.866466011003coinbase
    11
    2023-01-01 00:00:00.000982890.81773629gate.io
    12
    2023-01-01 00:00:00.000112380.2044633184bitfinex
    13
    2023-01-01 00:00:00.00077471.2793805543bitget deposit_wallet
    14
    2023-01-01 00:00:00.0003490371.645683327659bybit deposit_wallet
    15
    2023-01-01 00:00:00.0003490404.626406927464bybit
    16
    2023-01-01 00:00:00.00012094902.4646528165okx
    17
    2023-01-01 00:00:00.00044157766.67181145458binance
    18
    2023-01-01 00:00:00.000741473.41927508452kraken deposit_wallet
    19
    2023-02-01 00:00:00.000391857.35823733452gate.io
    20
    2023-02-01 00:00:00.000184097.70958886139bitfinex deposit_wallet
    ...
    232
    15KB
    62s