OKX Swap History

The last 1000 OKX dec swaps are stored in our cache

Basic
Premium
Enterprise
Credit Cost

3 per request

GET /api/v1/okx-dex-swaps/history

or with parameters to get a prefered amount of transactions:

GET /api/v1/okx-dex-swaps/history?limit=1000&offset=0

{
    "success": true,
    "data": [
        {
            "timestamp": 1752472277686,
            "source": "okx-dex-swaps",
            "signature": "5wG6kdtKeSu9ayKn3kfmWRZbAptFSS8jTey7Dtu82tUdrJfuYFDJt9jw4dDSPk7QvZEVQ2WmxfPCYaETdKnxf11A",
            "wallet": "65d7mRpjuuFEvDnicmvysdDG1JqQTdZibEFo35Fa11rG",
            "slot": "353185035",
            "swap": {
                "input_mint": "6jTQCFZR8JwvvenVGa3RzGM3a5YEagk9kQXDpHHdpump",
                "input_amount": 251815397917,
                "input_decimals": 6,
                "output_mint": "So11111111111111111111111111111111111111112",
                "output_amount": 4984498432,
                "output_decimals": 9,
                "price": 50519.70651658137,
                "price_inverse": 0.00001979425592410724
            },
            "instruction_data": {
                "instruction": "PlatformFeeSolProxySwapV2",
                "payer": "65d7mRpjuuFEvDnicmvysdDG1JqQTdZibEFo35Fa11rG",
                "before_source": 251815397917,
                "before_destination": 0,
                "after_source": 0,
                "after_destination": 4984498432,
                "source_token_change": 251815397917,
                "destination_token_change": 4984498432
            },
            "type": "okx_dex_swap"
        },
        {
            "timestamp": 1752472277587,
            "source": "okx-dex-swaps",
            "signature": "2j1No4UbJXwH4YJA7f6petqchSW3p5PcmaC2FKyEdWzC65aNu63e7QM2PdHX6zFzEmiuyrfsgneFaoanRnLRx7E5",
            "wallet": "EQrEuLN7jZhp3Zjqo8HzTRCgSBC16a3pLHWjesXmXrDW",
            "slot": "353185035",
            "swap": {
                "input_mint": "4BB8Ev6ncjBYW8h8R5fDzDRAXDPQDmJAiETEjrTqbonk",
                "input_amount": 97518110851,
                "input_decimals": 6,
                "output_mint": "FTXvyqDqCZMXPiVDnjLdPGLu7Tv6iS294yednuBVbonk",
                "output_amount": 59487229195,
                "output_decimals": 6,
                "price": 1.6393117005220434,
                "price_inverse": 0.6100121164764133
            },
            "instruction_data": {
                "instruction": "PlatformFeeSplProxySwapV2",
                "payer": "EQrEuLN7jZhp3Zjqo8HzTRCgSBC16a3pLHWjesXmXrDW",
                "before_source": 97615726578,
                "before_destination": 703924363622,
                "after_source": 97615727,
                "after_destination": 763411592817,
                "source_token_change": 97518110851,
                "destination_token_change": 59487229195
            },
            "type": "okx_dex_swap"
        }
        // ...and so on
    ],
    "pagination": {
        "limit": 100,
        "offset": 0,
        "total": 1000,
        "returned": 100
    },
    "credits_consumed": 0,
    "message": "OKX DEX swaps history retrieved successfully"
}

Last updated