logo

#How to import users and account balances database Peatio

  1. Create csv files for users and accounts with those templates.

Users table

uidemaillevelrolestatereferral_uid
ID1000003837[email protected]3superadminactiveID1000003828

uid, email - require params

Accounts table

uidcurrency_idmain_balancelocked_balance
ID1000003837ETH105

uid, currency_id - require params

  1. For import users
   bundle exec rake import:users['file_name.csv']
  1. For import accounts
  bundle exec rake import:accounts['file_name.csv']