Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exert entry hitter bot #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Giftednes
Copy link

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)

@toptraderke
Copy link
Owner

hello Gift what are you trying to create before we review the pr

@Odiwomma
Copy link

This is nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants