Access response data using dot-notation and bracket notation
masterEndpoints return custom class objects. You can access defined fields using dot-notation. For fields that are not explicitly defined in the SDK's custom classes, use standard bracket notation to access the underlying data.
Example: Dot-notation (Defined fields)
product = client.get_product("BTC-USD")
print(product.price)Example: Bracket notation (Undefined/Nested fields)
accounts = client.get_accounts()
# Accessing a nested field not explicitly defined in the SDK class
print(accounts.accounts[0].available_balance['value'])product = client.get_product("BTC-USD")
print(product.price)
accounts = client.get_accounts()
print(accounts.accounts[0].available_balance['value'])