tardis-dev / serum-vial

Real-time WebSocket market data API for Serum
Mozilla Public License 2.0
173 stars 60 forks source link

--markets-json option has no effect #48

Closed yuduan0220 closed 2 years ago

yuduan0220 commented 2 years ago

Hi, I'm trying to use --markets-json with my custom markets.json file to limit the serum-vial to listen to only a subset of markets, however this option seems to be not working.

The command I use: npx serum-vial --endpoint --markets-json

The json file contains: [ { "address": "9wFFyRfZBsuAha4YcuxcXLKwMxJR43S7fPfQLusDBzvT", "deprecated": false, "name": "SOL/USDC", "programId": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin" } ]

thaaddeus commented 2 years ago

try relative path?

yuduan0220 commented 2 years ago

Thank you, relative path works fine, that's strange, why absolute path didn't work?