Mappers

AccountDemographicMapper

class q2_cores.SymXchange.mappers.account_demographic.AccountDemographicMapper(list_of_queries, hq_credentials=None, zone_context=None)[source]

Bases: BaseMapper

returns a list of name records including address info, list of shares and selected account info.

static parse_returned_queries(list_of_queries)[source]

After all queries in list_of_queries have been run, this parses the results into a standardized response type.

Return type:

list

BaseMapper

class q2_cores.SymXchange.mappers.base_mapper.SymXchangeBaseMapper(list_of_queries, hq_credentials=None, zone_context=None)[source]

Bases: BaseMapper

static parse_returned_queries(list_of_queries)[source]

After all queries in list_of_queries have been run, this parses the results into a standardized response type.

Return type:

SymXchangeMessage

async execute()[source]
Return type:

SymXchangeMessage

  • Calls .execute on all queries in self.list_of_queries

  • Calls .parse_returned_queries on the results