Counting Unique Exchange Accounts by Name and Label
Summary
The document addresses how to count distinct configured exchange accounts when a multi-exchange strategy contains many exchange objects, potentially associated with different currencies. Its example identifies each account using the combination of exchange name and label, then records only combinations not already encountered. The resulting list can be inspected to determine how many unique configurations are present.
This is a small utility technique rather than a trading strategy or market analysis. The sample logs the exchange objects and the deduplicated list, but the document supplies no performance evidence or discussion of edge cases such as missing or inconsistent labels. Its count reflects distinct name-and-label pairs, so it depends on those fields reliably identifying the intended accounts.
Key ideas
- The example counts distinct configured exchange accounts by pairing each object's name with its label.
- It scans exchange objects and keeps a record of name-and-label combinations already seen.
- The reported count represents unique pairs, not necessarily unique venues if labels or names are inconsistent.
- The document is a programming utility and gives no trading performance analysis.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.