2 ian = input asset type n
3 oqn = output quantity n
4 oan = output asset type n
6 key = machine private key
7 inv = inventory location
10 Defining or changing a machine:
40 Output: echo of input, plus status (OK or Error)
123 =<Number of quanta satisfied>
130 Ratio of input quantity to output quantity offerred has to be less than or equal to the ratio of input quantity to output quantity bid for all input/output pairs.
132 So if you're selling 1 gram of gold for 30 dollars plus 10 asset tokens, and I offer 32 dollars plus 12 asset tokens for 0.8 grams of gold, the trade would go through:
144 However, if I offer 32 dollars plus 7 asset tokens for 0.8 grams of gold, the trade would NOT go through.
149 30 < 40, but 10 > 8.75
151 Additionally, you have to be able to satisfy at least all the output amounts listed in the bid (this could be one of a chain of bids that the client has put together).
153 Different representation:
160 =30:<dollars> 10:<usage tokens>
168 =<inventory location>
171 Output: echo of input, plus status (OK or Error)
190 =30:<dollars> 10:<usage tokens>
197 Include the key in queryvend and you'll get the inventory location out.
203 =30:<dollars> 10:<usage tokens>
216 =30:<dollars> 10:<usage tokens>
224 =<Number of quanta satisfied>