sonvister / Binance

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

Beta 5 Symbol Issue #94

Closed turgayacar closed 6 years ago

turgayacar commented 6 years ago

Greetings; I want to set Symbol by string; Example = Symbol sym = "BTCUSDT"; but push error this update. How to fix it? Need set from string asset or symbol. And very useful.

sonvister commented 6 years ago

@turgayacar, the implicit conversion of string to Symbol was replaced with Symbol.Cache.Get() in 0.2.0-beta4 (issue #89) and a cache abstraction layer was added.

So, Symbol sym = "BTCUSDT"; is now Symbol sym = Symbol.Cache.Get("BTCUSDT");

The code is not as concise, but it resolves #89 and makes it clear that the Symbol is being pulled from the cache.

turgayacar commented 6 years ago

Oh Thanks. Best Regards.