Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/markzuckerbergas/gbmplus-api-python/llms.txt

Use this file to discover all available pages before exploring further.

The GBM Plus API Python library gives developers programmatic access to the GBM Plus and Homebroker trading platform. With a single import you can authenticate, inspect your strategies, submit buy/sell orders for Mexican and US market instruments, and move funds between accounts.
This is an unofficial, community-built library. The GBM Plus API is not publicly documented and was reverse-engineered. Review the GBM Terms of Service before use. You assume full responsibility for compliance.

Quickstart

Install the library and make your first API call in under 5 minutes.

Authentication

Learn how to obtain your credentials and authenticate your session.

API Reference

Full reference for all modules, methods, enums, and exceptions.

Examples

Worked examples for orders, transfers, and US market trading.

What you can do

Manage Accounts

List strategies, fetch buying power, and retrieve position summaries.

Submit Orders

Generate and submit buy/sell orders for IPC and SIC instruments.

Transfer Funds

Move MXN amounts between your GBM+ strategies programmatically.

Trading USA

Place fractional orders on US stocks via the Trading USA platform.

Getting started in three steps

1

Install via pip

pip install gbmplus
2

Set your credentials

Export your GBM+ email, password, and client ID as environment variables. Find your CLIENT_ID in the GBM+ login dashboard.
export USER_EMAIL="you@example.com"
export USER_PASSWORD="your-password"
export CLIENT_ID="your-client-id"
3

Make your first call

import gbmplus

gbm = gbmplus.GBMPlusAPI(output_log=False)
accounts = gbm.accounts.getAccounts()
print(accounts)
See the Configuration guide for all available session parameters including timeouts, retry behaviour, and logging options.

Build docs developers (and LLMs) love