To go about using API to trade do refrence our docs here
We are using hyperliquid exchange endpoints so you just need to connect Based builder code and client id, allowing API trades to earn XP. There is no penalties for trading with a API.
Some details to note:
No secret key is required.
You can find the Client ID in Hyperliquid's docs.
All required docs are in our API doc and Hyperliquid docs.