Hello,
i had your mod enabled in a playthrough over the past week and i have noted 3 issues:
0) if you are in the market tab and press the wrong button (up instead of down), all items from that tab vanish and the ui bugs (doesn't show all objects anymore). workaround: pressing esc to return to the prev menu and opening the market again resets it as if nothing happened.
1) if you press "arrow-down" on accident while flying around space (inside a system), the game crashes and throws a null exception.
2) while it's known that starsector has a memory leak issue (which requires a complete game restart), the severity of this issue is notably increased by your mod: the memory issue occured after each 10-20 big battles and while your mod was enabled, it occured after every single battle. *solution suggestion: if possible, let your script only be active when a player pressed the "trade with station" button after which the market opens) and if a player is using any of the "go back" options (like pressing esc), your script should be disabled again until time the market is opened.