Price History can be considered as a consolidation (or intervalisation) of Course of Sales data. Course of Sales contains all the trades for a security. Price History consolidates that data into Open, High, Low, Close values for particular time intervals. Generally this consolidation is done in such a way so that it is easy to create charts and see trends in the price data or do technical analysis.
Information like trade attributes is used to determine what trades are included in the consolidation however this field itself is not included in the consolidated data.
Sounds like you want to use a different algorithm for consolidating Course of Sales data into Price History. While this is possible, please not that:
The PxAPI monitors the number and type of requests done by any client software. If limits are are approached or exceeded, the relevant client's data connection will be throttled or disconnected.
If you want to do your own price history consolidation, you will need to maintain your own historical database on your computer and only use PxApi to update it with the current days data.