Arbitrage / HFT bot/
Candle bot/ Semi-manual/

A free open source python API to create crypto bots with all visual elements
exchanges
You can create a small terminal with all needed visual elements.
Ready-made visual elements for your bot

API Examples
1
2
3
4
5
6
7
8
9
10
11
12
huobi = Huobi('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# Place limit order
limit_order_response = huobi.place_order(
amount=101,
symbol='trxusdt',
price=0.05,
type='buy-limit'
)
1
2
3
4
5
6
7
8
9
10
11
12
13
ftx = FTX('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
# Get all open orders
ftx.get_open_orders()

# Get all open orders for "ETH-PERP"
ftx.get_open_orders("ETH-PERP")

# Get orders history
ftx.get_orders_history()

# Get orders history for "ETH-PERP"
ftx.get_orders_history("ETH-PERP")
1
2
3
4
5
6
7
8
9
10
11
12
ftx = FTX('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# Place stop loss order:
ftx.place_trigger_order(
market="ETH/USDT",
side='sell',
size=1.2,
type='stop',
triggerPrice=100,
)

1
2
3
4
5
6
7
8
9
10
11
12
ftx = FTX('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# Get positions list
ftx.get_positions()

# Get account information
ftx.get_account_information()

# Get account balances list
ftx.get_balances()


1
2
3
4
5
6
7
8
9
10
11
12
huobi = Huobi('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# Get all accounts list
accounts = huobi.get_accounts()

if accounts.get('status') == 'ok':
spot_account = list(filter(lambda i: i['type'] == 'spot', accounts.get('data')))[0]

huobi.change_account_id(spot_account.get('id'))

1
2
3
4
5
6
7
8
9
10
11
12
huobi = Huobi('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# Place limit order
limit_order_response = huobi.place_order(
amount=101,
symbol='trxusdt',
price=0.05,
type='buy-limit'
)
Api Examples
Send order
1
2
3
4
5
6
7
8
9
10
11
12
ftx = FTX('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# Place stop loss order:
ftx.place_trigger_order(
market="ETH/USDT",
side='sell',
size=1.2,
type='stop',
triggerPrice=100,
)
Place Stoploss
1
2
3
4
5
6
7
8
9
10
11
12
ftx = FTX('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# Get positions list
ftx.get_positions()

# Get account information
ftx.get_account_information()

# Get account balances list
ftx.get_balances()
Get Positions, Balances
Get the HFTcryptbot
API for free
API