<gh_stars>0
import requests


address = "https://int-api.mx.com/users/USR-8fe5e260-fe63-47dd-b8cd-438cd5a48b94/accounts?page=1&records_per_page=10"
headers = {
            "Accept": "application/vnd.mx.api.v1+json",
            "Content-Type": "application/json",
    }
userName = "6<PASSWORD>"
password = "<PASSWORD>"

def get_mx_balance():
    
    response = requests.get(
            address, verify=False, headers=headers, auth=(userName, password)
    ).json()["accounts"][0]["balance"]

    return response
import requests


address = "https://int-api.mx.com/users/USR-8fe5e260-fe63-47dd-b8cd-438cd5a48b94/accounts?page=1&records_per_page=10"
headers = {
            "Accept": "application/vnd.mx.api.v1+json",
            "Content-Type": "application/json",
    }
userName = "6<PASSWORD>"
password = "<PASSWORD>"

def get_mx_balance():
    
    response = requests.get(
            address, verify=False, headers=headers, auth=(userName, password)
    ).json()["accounts"][0]["balance"]

    return response