def api_fake_keyfile(tmp_path, api_fake_key, api_fake_secret):
    """Fake API *kraken.key* file (with key & secret)"""
    fake_kraken_key_file = tmp_path / "kraken.key"
    fake_kraken_key_file.write_text(
        f"key = {api_fake_key}\n" f"secret = {api_fake_secret}\n"
    )
    return fake_kraken_key_file