You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope you don't mind me throwing some issues at you. If I collect enough of them and they start to become urgent I'll open a PR myself.
Another quality-of-life improvement would be to make TradingEnvironment Clone. Consider
fnrun(env:TradingEnvironment){letmut kalshi = Kalshi::new(env);// <- env is consumed here
...// so I can't use it later, like this
if env == TradingEnvironment::Demo{
....
}}
Currently, I have to manually clone it by adding
let env_clone = match&env {TradingEnvironment::DemoMode => TradingEnvironment::DemoMode,TradingEnvironment::LiveMarketMode => TradingEnvironment::LiveMarketMode,};
The text was updated successfully, but these errors were encountered:
I hope you don't mind me throwing some issues at you. If I collect enough of them and they start to become urgent I'll open a PR myself.
Another quality-of-life improvement would be to make
TradingEnvironment
Clone. ConsiderCurrently, I have to manually clone it by adding
The text was updated successfully, but these errors were encountered: