fluidex / dingir-exchange

A high performance crypto trading engine
235 stars 63 forks source link

db: add user_balance table? #261

Open lispc opened 3 years ago

lispc commented 3 years ago

We only have balance_history table now.

A user_balance table is quite useful.

eg, 'select * from user_balance where coin = 'eth' order by balance desc limit 10'

lispc commented 3 years ago

is it really necessary? We dump balance as balance_slice regularry