scottjbarr / bitfinex-py

A Python client for the Bitfinex API
MIT License
134 stars 131 forks source link

Having trouble initiating trade #13

Open Zalkota opened 7 years ago

Zalkota commented 7 years ago

Attempting to create a script for placing an order with the help of the example "basic.py" I keep getting the error: AttributeError: 'Client' object has no attribute 'place_order'

from bitfinex.client import Client

client = Client() TradeClient = Trade()

symbols = client.symbols() print(symbols)

symbol = 'iotusd'

client.init()

Trade.place_order(IOTUSD, 5, 0.9, bitfinex, buy, limit)

print(client.ticker(symbol))

parameters = {'limit_asks': 2, 'limit_bids': 2}

print(client.lendbook('iot', parameters)) print(client.order_book(symbol, parameters))