In the Trading 212 app (practice account): Settings → API → create a key. Paste the key and the secret below. Both are encrypted on this phone; only your bot on the family server can read them.
Check code: … — it must match the code in your bot's message.