diff --git a/spot_limit_buy.py b/spot_limit_buy.py deleted file mode 100644 index f6935e7..0000000 --- a/spot_limit_buy.py +++ /dev/null @@ -1,28 +0,0 @@ -from coinbase_advanced_trader.enhanced_rest_client import EnhancedRESTClient -import json - -# Path to your JSON file -json_file_path = 'cdp_api_key.json' - -# Read the JSON file -with open(json_file_path, 'r') as file: - data = json.load(file) - -# Extract the API key -api_key = data['name'] -api_secret = data['privateKey'] - -client = EnhancedRESTClient(api_key=api_key, api_secret=api_secret) - -try: - - # Perform a limit buy - response = client.fiat_limit_buy("BTC-USDC", ".01") - print("Status Code:", response.status_code) - print("Headers:", response.headers) - print("Response Body:", response.text) - -except Exception as e: - print(f"An error occurred while creating the client: {e}") - -