The Margin API and Get Funds API provide the latest margin data.
Could you clarify which fields you use from the Funds and Margin APIs? Additionally, could you briefly describe your scenario example and value with the contract you are trading in to help illustrate and investigate this?