thanks for the reply.? Actually I am no where near trading with API yet.? I am still too new for this.? ?What I am trying to do now is still "read-only".? In particular, now I want to know the maintenance margin for each symbol in my portfolio.? Is there any way to "read" out this information other than submitting an what-if order that close all positions of a symbol?