To post opening balance for accounts, use a Journal entry. The standard Chart of accounts contains an Opening Balance Equity account. For example, opening bank balance can be entered as Dr Bank account Cr Opening Balance Equity account.
Please use Data Import Tool to create Journal entry with opening balance transactions.