Query Entry Price by API/Smart Contract?

May I know if there is a way to query the entry price of a perpetual by API or smart contract? Thanks.

I have only managed to find this doc (💾 Smart Contract JavaScript Development Guide - Perpetual Protocol) but it seems only applicable to open positions, rather than a new about-to-be-opened position.

Any help with this? Exchange would not be very useful if there is no way to know the entry price before entering trade?

Hey if you check out our discord in the developer chat room the people there are super friendly and helpful!