Closed MiniXC closed 4 years ago
Good idea. I like it.
Would suggest also allowing num_shares=x
as a parameter.
Would also suggest adding a default for b.long("ticker", 1)
Maybe 1 is interpreted as # of shares or dollar amount? Specify in any case.
I think the wording for percent_balance is unclear, as a balance can denote multiple things. I think a more understandable wording might be percent_available
Thanks for the input, agree with percent_available
, will also change b.balance.current
to b.balance.available
then. I also added num_shares
to the proposal.
I have no idea for what would be a sensible default, because all options are equivalent. It might just make more sense to not allow use of the function without a specific kwarg for now, and when a clear "favourite" emerges that is used most of the time, we can still make it default.
Changed num_shares
to nshares
Implemented in 51812e5530ec5ced7e7837b02f247b86a1fbdc66
At the moment the ordering is a bit clumsy and counter-intuitive (see example below).
Proposed
Any other suggestions? What (if anything) should it default to when the keyword isn't set?