Hi. What do you need the ID for tho?

trading.h

Quote:

typedef struct TRADE
{
int nID; // active trade id, or 0 for pending trades; can change when trades are partially closed
// ...
}


I don't know what happens if you overwrite it. Maybe undefined behaviour.