Thanks for your answer, it helps a lot.
For X and Y, I was talking about minerals, energy, or subscription tokens.
Also, in your example, do you confirm remaining amount is 10k, and not 9k (since it's the 'leftover') ? Does that value change when someone buys some ?
What about when I place a buy order ? I guess remainingAmount is how many I want to buy, but for amount (or the other way around), surely it can't mean the same thing as before, as I can't "only have 1k in the terminal right now". I'm buying some, doesn't matter what I have. Is it the credits I have ? Or how many I could afford, based on the credits I have and the price I propose ? Or maybe how much space is left in the terminal ? Something else entirely ?
Seems to me the documentation could use an update and a bit more accuracy.