Click on "Performance & Reports" in the top menu,
then click "Flex Queries".
Find the box that says "Flex Web Service
Configuration" and click the little gear icon next to it.
A popup will appear. Check the box for "Flex web service
status". Make sure the Expiry is set to "1-YEAR" and leave "Allowed IP Addresses" blank/empty so the cloud sync service can fetch your reports.
Highlight and copy the long string of numbers where it says
"Current token". This is your Token! Click "Save".
Part 2: How to get your Query ID
Step 2.1: Setting up the
query
Go back to the main "Flex Queries" page.
Click the '+' button next to "Activity Flex
Query" to create a new one.
Name your query something easy to remember, like "My Trading
Journal".
Under the "Sections" area, check these three
options, with "Select all" checked for all of them:
Net Asset Value (NAV) in Base
Open Positions
Trades > Orders
Under the "Delivery configuration" area, make sure
the Output Format is set to "XML".
Change the Period drop-down to "Year to Date" or
"Last 365 Calendar Days".
Click "Continue" and then "Create"
to save this new query.
Step 2.2: Finding the Query
ID number
Go back to the main "Flex Queries" page again.
Find the new query you just created and click the info
icon on the left side of it.
On the next screen, look for the number labeled "Query
ID". Copy this number. This is your Query ID!
You're all done! Now
just paste your Token and your Query ID into the Settings window in
the app.