I have f-data.csv with fields exchange,pair,bid_price,bid_volume,ask_price,ask_volume that have bid/ask prices/volumes for differents pairs in some crypto exchanges
and i have fees.csv with fields exchange,currency,network,deposit_status,min_deposit_amt,num_of_confirmations,withdraw_status,min_withdraw_amt,transact_fee_withdraw,estimated_deposit_time
Generate code that merge to one json file named migrated.json, it extract availables pairs from f-data that have base currency match currency in fees file, if no pairs available for that currency skip it
With structure like this example:

[
    {
        "kucoin": {
            "eth": {
                "FET": {
                    "deposit_status": "deposit allowed",
                    "min_deposit_amt": "9.0",
                    "num_of_confirmations": "64.0",
                    "withdraw_status": "withdraw allowed",
                    "min_withdraw_amt": "9.2",
                    "transact_fee_withdraw": "4.6",
                    "estimated_deposit_time": "960.0",
                    "pairs": {
                        "FET/USDT": {
                            "bid_price": "1.5579",
                            "bid_volume": "406.6119",
                            "ask_price": "1.5583",
                            "ask_volume": "406.7163"
                        },
                        "FET/BTC": {
                            "bid_price": "2.4127e-05",
                            "bid_volume": "0.006297147",
                            "ask_price": "2.4193e-05",
                            "ask_volume": "0.0176005574966"
                        },
                        "FET/ETH": {
                            "bid_price": "0.0005913",
                            "bid_volume": "0.61185843666",
                            "ask_price": "0.00059311",
                            "ask_volume": "0.012716278400000001"
                        }
                    }
                },...
            },
            "bsc": {
                "MTV": {
                    "deposit_status": "deposit suspended",
                    "min_deposit_amt": "500000000.0",
                    "num_of_confirmations": "32.0",
                    "withdraw_status": "withdraw suspended",
                    "min_withdraw_amt": "1400.0",
                    "transact_fee_withdraw": "700.0",
                    "estimated_deposit_time": "96.0",
                    "pairs": {
                        "MTV/USDT": {
                            "bid_price": "0.0006497",
                            "bid_volume": "41.29186675830999",
                            "ask_price": "0.0006555",
                            "ask_volume": "81.66445941365001"
                        },
                        "MTV/BTC": {
                            "bid_price": "9.69e-09",
                            "bid_volume": "0.00483413341536",
                            "ask_price": "1.047e-08",
                            "ask_volume": "0.0010333570565490002"
                        },
                        "MTV/ETH": {
                            "bid_price": "2.343e-07",
                            "bid_volume": "0.01008896933025",
                            "ask_price": "2.568e-07",
                            "ask_volume": "0.042378504019290004"
                        }
                    }
                },...
            },...
        },
        "xt": {
            "bsc": {
                "BNB": {
                    "deposit_status": "deposit allowed",
                    "min_deposit_amt": "500000000.0",
                    "num_of_confirmations": "32.0",
                    "withdraw_status": "withdraw allowed",
                    "min_withdraw_amt": "0.018",
                    "transact_fee_withdraw": "0.0009",
                    "estimated_deposit_time": "96.0",
                    "pairs": {
                        "BNB/USDT": {
                            "bid_price": "577.1",
                            "bid_volume": "4889.1936000000005",
                            "ask_price": "577.4",
                            "ask_volume": "71.5976"
                        }
                    }
                },......
........