import json


def get_coinbase_creds_from_file(credentials_file):
    """Open a JSON file and get Coinbase credentials out of it
    Args:
        credentials_file: A JSON file containing Coinbase credentials

    Returns:
        coinbase_api_key: An API key for Coinbase APIv2
        coinbase_api_secret: An API secret for Coinbase APIv2
    """
    with open(credentials_file) as creds_file:
        data = json.load(creds_file)
    coinbase_api_key = data['API_Key']
    coinbase_api_secret = data['API_Secret']
    return coinbase_api_key, coinbase_api_secret