EDIT - I uploaded the wrong excel so please now use the NFT_trade_example_V2 Excel document. Thanks
Hi there. This project is to write a function in python takes a dataframe of NFT items and their value, and returns a suggested list of trades/swaps i could make.
Please open the attached file "[login to view URL] and follow the below use case:
- I am the owner of Wallet1. I currently hold 12 NFTs with a value of $8,270.
- I am looking to see potential trades/swaps i could make with other wallet holders (i/e - give up some of my NFTs but get others in return).
- I would like to get a function built that suggests trade opportunities to other Wallet holders based on my requirements.
Ideally i would like to be able to pick contraints on the fly to generate more targeted opportunities.
For example i would like Python function to contain the following contraints to filter which NFTs to look for as part of the trade:
Contraints of what i would like to trade:
constraint1 = which NFTs would you like included in trade (ie input the nft_name/s that I own). Ideally can select multiple NFTs here.
constraint2 = what Mint_Year NFT wold you like to trade (i.e 2020, 2021 or either year). can leave blank
constraint3 = what collection you would like to trade
constraint4 = minumum value to trade
constraint5 = maximum value to trade
Contraints of what i would like to receive:
constraint6 = the name of the Current_Owner i would like to receive an NFT from
constraint7 = which NFTs would you like included in trade (select NFT you would like included)
constraint8 = what Mint_Year NFT would you like to receive
constraint9 = what collection you would like to receive
constraint10 = minumum value to receive
constraint11 = maximum value to receive
constraint12 = maximum difference between NFT values (for example if i set this at 10% the difference between the total value coming in and leaving would not be more than + or - 10%).
constraint13 = minumum NFTs to receive
constraint14 = maximum NFTs to receive
constraint 15 = the trade can only be facilitated on a 1:1 basis. EG one Wallet holder to another
I would also like to pick whether the constraint is fixed (eg. this contraint has to strictly fit that criteria) or it can be an include option (where the contstraint has to be met at least once only).
In the spreadsheet i have attached two working examples that help highlight on what i need.
In summary, i would like a python function that takes the masterlist as an input and then exports a dataframe with suggestions.
I appreciate this is complex to happy to explain further if need be.