Hi there!
I have as Data Types “ASK” and “BID”.
Each of them have Fields like “Product”, “Price” and “Quantity”.
I need to check if in “ASK” and in “BID” there are the same product, meaning someone is selling a product and other one is willing to buy it.
Once this boolean is “yes”, I need to compare the fields like the table below:

When Price A < Price B, there is no transaction.
I just can’t figure out how to get this checks results and proceed with an workflow for each result (wich are done, btw)
One week stuck at this point… I think I’ve read the whole internet seeking for a light… any help would be very appreciated. Thanks in advance!
Hey @as3alan 
What if there are more buyers or sellers of the same product? Then, what is the strategy?
Or are you assuming there is only 1 buyer and 1 seller for a specific product. If this is the case, you can start with Product
instead of Bid
or Ask
data type. Simply, if you are doing this in a backend workflow, for a single product you can do this: do a search for, get first item and find the bid
, do a search for, get first item and find the ask
, and do your comparisons.
There will be lots of buyers and sellers for the same product. The highest BID is the one to consider while the lowest ASK is the one to consider.
When this transaction is done, these BID and ASK are deleted and the second ones become the first, restarting the process.
Thanks for the guidance… I’d appreciate more comments from you and other Bubblers.