Skip to content

Commit

Permalink
Merge pull request #10 from tarioch/chore/simplify_ibflex
Browse files Browse the repository at this point in the history
use upgraded ibflex interface
  • Loading branch information
tarioch authored Feb 21, 2020
2 parents 3d38916 + 941faa2 commit d86163e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tariochbctools/importers/ibkr/importer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import yaml
from os import path
from ibflex import client, parser, Types, enums
import xml.etree.ElementTree as ET
from datetime import date

from beancount.query import query
Expand Down Expand Up @@ -31,9 +30,7 @@ def extract(self, file, existing_entries):
priceLookup = PriceLookup(existing_entries, config['baseCcy'])

response = client.download(token, queryId)

root = ET.fromstring(response)
statement = parser.parse_element(root)
statement = parser.parse(response)
assert isinstance(statement, Types.FlexQueryResponse)

result = []
Expand Down

0 comments on commit d86163e

Please sign in to comment.