LBank-exchange / lbank-official-api-docs

Official Documentation for the LBank
https://www.lbank.com
30 stars 20 forks source link

buy_market #28

Closed progFor103 closed 1 year ago

progFor103 commented 1 year ago

When buying from the market, for some reason it buys only 1 coin, instead of the specified number

import LBank.new_v2_inter.OrderMan as OrderMan

order = OrderMan.OrderMan()
    order.getCreate_order(symbol='lbk_usdt', type='buy_market', price=0.013, amount=4000)

and param {'symbol': 'lbk_usdt', 'type': 'buy_market', 'price': 0.013, 'amount': 4000, 'api_key':......

and reply {'result': True, 'data': {'symbol': 'lbk_usdt', 'order_id': 'fbfa0dfc-95ac-497c-a4ad-6c278a4f3483'}, 'error_code': 0, 'ts': 1685702953922} don't have error

progFor103 commented 1 year ago

an in this API have type: buy_market and sell_market, but in api on github there is no this parameter

progFor103 commented 1 year ago

Dear customer,

About your api question order interface. type supports buy_market, sell_market, here you need to pay special attention, if the type is passed to the market price type (buy_market, sell_market), the price field in the interface represents the transaction amount

Best Regards LBank