gruelbox/orko

Script Engine: Access to balances

AwooOOoo opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
Allow the script engine to expose access to the balance data as seen in the balances window

Describe the solution you'd like
Expose a 'balance' object such as;

{ 
  base: 'BTC', 
  quote: 'USD', 
  baseBalance: '0.1', 
  quoteBalance: '500.00'
  baseAvailable: '0.1', 
  quoteAvailable: '500.00'
}

Describe alternatives you've considered
I notice you use 'counter' (i.e. base/counter) instead of the more standardized 'quote' terminology (base/quote), but we should be consistent whatever we choose.

Again, base/counter is the terminology used in XChange. No idea why, but as XChange is deeply embedded in Orko I stuck with its to avoid confusion.

Open to the idea of changing it in the Script API though.

:+1 to adding balance to the script API.