Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Place order (market and limit) give zero price and infinite volume #1592

Closed
njannink opened this issue May 15, 2018 · 4 comments
Closed

Place order (market and limit) give zero price and infinite volume #1592

njannink opened this issue May 15, 2018 · 4 comments
Labels

Comments

@njannink
Copy link

Hello I'm adding support for the lykke exchange (www.lykke.com) and when I make a trade I get a price of 0 and a volume of Infinite:

{ price: '0.00', size: 'Infinity', fee: null, orig_size: 'Infinity', remaining_size: 'Infinity', orig_price: '0.00', order_type: 'maker', cancel_after: 'day', product_id: 'EOS-BTC', post_only: true }

Even though I have a balance and quotes. Any idea what is going wrong?

2018-05-13 19:00:00 0.00185000 EOS-BTC +0.00% 4 - 46.15 -1.2210 0.3815 sell 0.00000000 EOS 0.20753246 BTC +0.00% +18.43%

2018-05-14 15:32:26 0.00169900 EOS-BTC -8.17% 2 -- 44.67 -1.6557 0.3836 0.00000000 EOS 0.20753246 BTC +0.00% +28.95%

@defkev
Copy link
Contributor

defkev commented May 16, 2018

price: '0.00', size: 'Infinity'

Just a guess but you aren't dividing by zero?

@njannink
Copy link
Author

no no deviding I just pass the values from the lykke exchange to zenbot. I saw that its working for BTC-USD so maybe it has something to do with the small prices behind zero in case of EOS-BTC?

@brucetus
Copy link
Contributor

brucetus commented May 19, 2018

order size is calculated using your balance/deposit, which for many people recently has been incorrectly returning as 0 or null

@defkev
Copy link
Contributor

defkev commented May 20, 2018

Order size is calculated using buy/sell_pct, on a non-positive balance the bot will error out with insufficient funds will preparing a order.

If the balance doesn't get reported at all take a look at balance.js, as @illya13 did fix something? in #1573 only a couple of days ago this might also apply to engine.js

I have yet to see the error myself on any of my running bots though.

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

No branches or pull requests

4 participants