Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Please help me with java api LOT_SIZE error #278

Closed
Grebyn35 opened this issue Sep 3, 2020 · 2 comments
Closed

Please help me with java api LOT_SIZE error #278

Grebyn35 opened this issue Sep 3, 2020 · 2 comments

Comments

@Grebyn35
Copy link

Grebyn35 commented Sep 3, 2020

Hi, im building an algo with this API however i keep getting the LOT_SIZE error, the cause is by making a market/limit order that the decimal precision value is incorrect. I know i can get the right precision with the .getStepSize function, or the getExchangeInfo() but its not working!!! I keep getting this error

"Cannot deserialize value of type com.binance.api.client.domain.general.FilterType from String "MAX_POSITION": value not one of declared Enum instance names: [MARKET_LOT_SIZE, ICEBERG_PARTS, EXCHANGE_MAX_NUM_ORDERS, MAX_ALGO_ORDERS, MAX_NUM_ORDERS, EXCHANGE_MAX_ALGO_ORDERS, MAX_NUM_ALGO_ORDERS, PRICE_FILTER, LOT_SIZE, MAX_NUM_ICEBERG_ORDERS, MIN_NOTIONAL, PERCENT_PRICE]"

I have tried to use the filter type with all of these options but its the same error. Please help me get the precision value for the quantity i have not slept for 2 days

@truonghatsts
Copy link

It was fixed in this #276

@Grebyn35 Grebyn35 closed this as completed Sep 3, 2020
@Grebyn35
Copy link
Author

Grebyn35 commented Sep 3, 2020

Thanks, saved me ALOT of time.

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

No branches or pull requests

2 participants