### Initialize Equity Client Source: https://github.com/settrade/stt-open-api-sdk-example/blob/main/python/Python - Settrade Open API Example.ipynb Create an Equity client instance associated with a specific account number. ```python equity = investor.Equity(account_no="settrade-E") ``` -------------------------------- ### Initialize Derivatives Client Source: https://github.com/settrade/stt-open-api-sdk-example/blob/main/python/Python - Settrade Open API Example.ipynb Create a Derivatives client instance associated with a specific account number. ```python deri = investor.Derivatives(account_no = "settrade-D") ``` -------------------------------- ### Import SDK Modules Source: https://github.com/settrade/stt-open-api-sdk-example/blob/main/python/Python - Settrade Open API Example.ipynb Import the necessary modules from the settrade.openapi library. ```python import settrade.openapi from settrade.openapi import Investor ``` -------------------------------- ### Initialize Investor Object Source: https://github.com/settrade/stt-open-api-sdk-example/blob/main/python/Python - Settrade Open API Example.ipynb Create an Investor object for authentication and API interaction. Ensure 'app_code' and 'broker_id' are set to 'SANDBOX' for testing. ```python investor = Investor( app_id="8uuaMP1npccDixrg", app_secret="APX6wnqzk/yoVLIRyQ4ps4Fm13uzbC4tL5nyjAwwCKue", app_code="SANDBOX", broker_id="SANDBOX", is_auto_queue=False) ``` -------------------------------- ### Place Equity Order Source: https://github.com/settrade/stt-open-api-sdk-example/blob/main/python/Python - Settrade Open API Example.ipynb Place an equity order with specified parameters including symbol, price, volume, side, and PIN. ```python equity.place_order( symbol="PTT", price=38, volume=100, side="BUY", pin="000000") ``` -------------------------------- ### Place Derivative Order Source: https://github.com/settrade/stt-open-api-sdk-example/blob/main/python/Python - Settrade Open API Example.ipynb Place a derivative order with specified parameters including symbol, price, volume, side, and PIN. The 'position' is set to 'AUTO' and 'price_type' to 'LIMIT'. ```python deri.place_order(symbol="S50M22", price=950, volume=13, side="SHORT", position="AUTO", pin="000000", price_type="LIMIT", validity_type="GOOD_TILL_DAY") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.