From c1a8a9dee326d880400a89c7b690331954353296 Mon Sep 17 00:00:00 2001 From: Giftednes <165573033+Giftednes@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:52:57 +0300 Subject: [PATCH] Create Exert entry hitter bot --- Exert entry hitter bot | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Exert entry hitter bot diff --git a/Exert entry hitter bot b/Exert entry hitter bot new file mode 100644 index 0000000..cbdd8b4 --- /dev/null +++ b/Exert entry hitter bot @@ -0,0 +1,32 @@ +import ccxt +import time + +# Create a new FTX client. +ftx = ccxt.ftx() + +# Authenticate with your FTX API key and secret. +ftx.apiKey = 'YOUR_API_KEY' +ftx.secret = 'YOUR_SECRET' + +# Define the target price. +target_price = 10000 + +# Define the order parameters. +order_params = { + 'symbol': 'BTC/USD', + 'side': 'buy', + 'type': 'limit', + 'price': target_price, + 'amount': 0.1, +} + +# Create the order. +order = ftx.create_order('BTC/USD', 'limit', 'buy', 0.1, target_price) + +# Wait for the order to be filled. +while order['status'] != 'closed': + time.sleep(0.1) + order = ftx.fetch_order(order['id']) + +# Print the order details. +print(order)