sonvister / Binance

A .NET Standard Binance API library.
MIT License
229 stars 77 forks source link

please update new pairs. For example BCN-BTC...etc #93

Closed phamanhtho closed 6 years ago

phamanhtho commented 6 years ago

please update new pairs. For example BCN-BTC...etc Thanks

sonvister commented 6 years ago

...it is not a goal of this project to create a new release just to update the static assets and symbols since the static assets and symbols are there for convenience, not necessity.

The only way to update these is with a new build. If necessary for your application, the source code is available to add the pairs by running BinanceCodeGenerator tool and use a local NuGet build of the library instead of the publicly available build.

sonvister commented 6 years ago

One possibility (made available with the latest changes) would be to add all known pairs including those that Binance has not listed yet and they would return null until they are listed (and the cache is updated), but that may be more confusing than helpful (not liking that idea).

sonvister commented 6 years ago

Also, an application could maintain their own BinanceSymbol class with static properties that reference Binance.Symbol.Cache. I am considering modifying the tool to generate a partial class that would be available to include in applications (not part of the library).

Then, anyone using the static assets and symbols would need to update their code (Symbol -> BinanceSymbol).

sonvister commented 6 years ago

0.2.0-beta5 includes BCN_BTC.