{"action":"created","issue":{"url":"https://api.github.com/repos/webcerebrium/java-binance-api/issues/35","repository_url":"https://api.github.com/repos/webcerebrium/java-binance-api","labels_url":"https://api.github.com/repos/webcerebrium/java-binance-api/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/webcerebrium/java-binance-api/issues/35/comments","events_url":"https://api.github.com/repos/webcerebrium/java-binance-api/issues/35/events","html_url":"https://github.com/webcerebrium/java-binance-api/issues/35","id":306971040,"number":35,"title":"ERROR: -1013, Filter failure: PRICE_FILTER","user":{"login":"yogi-dmt","id":8053809,"avatar_url":"https://avatars0.githubusercontent.com/u/8053809?v=4","gravatar_id":"","url":"https://api.github.com/users/yogi-dmt","html_url":"https://github.com/yogi-dmt","followers_url":"https://api.github.com/users/yogi-dmt/followers","following_url":"https://api.github.com/users/yogi-dmt/following{/other_user}","gists_url":"https://api.github.com/users/yogi-dmt/gists{/gist_id}","starred_url":"https://api.github.com/users/yogi-dmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogi-dmt/subscriptions","organizations_url":"https://api.github.com/users/yogi-dmt/orgs","repos_url":"https://api.github.com/users/yogi-dmt/repos","events_url":"https://api.github.com/users/yogi-dmt/events{/privacy}","received_events_url":"https://api.github.com/users/yogi-dmt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-20T17:44:13Z","updated_at":"2018-03-22T20:35:32Z","closed_at":null,"author_association":"NONE","body":"I'm getting this error even when i've parsed the exchangeInfo api and trimmed my price value to the appropriate asset precision. It's also above the minPrice value as well. Can't seem to find what the problem is. This is the value i am using to create my NANOBTC order with: 9.7504E-4. The base asset preicision for NANOBTC is 8. What am i missing?"},"comment":{"url":"https://api.github.com/repos/webcerebrium/java-binance-api/issues/comments/375448680","html_url":"https://github.com/webcerebrium/java-binance-api/issues/35#issuecomment-375448680","issue_url":"https://api.github.com/repos/webcerebrium/java-binance-api/issues/35","id":375448680,"user":{"login":"yogi-dmt","id":8053809,"avatar_url":"https://avatars0.githubusercontent.com/u/8053809?v=4","gravatar_id":"","url":"https://api.github.com/users/yogi-dmt","html_url":"https://github.com/yogi-dmt","followers_url":"https://api.github.com/users/yogi-dmt/followers","following_url":"https://api.github.com/users/yogi-dmt/following{/other_user}","gists_url":"https://api.github.com/users/yogi-dmt/gists{/gist_id}","starred_url":"https://api.github.com/users/yogi-dmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogi-dmt/subscriptions","organizations_url":"https://api.github.com/users/yogi-dmt/orgs","repos_url":"https://api.github.com/users/yogi-dmt/repos","events_url":"https://api.github.com/users/yogi-dmt/events{/privacy}","received_events_url":"https://api.github.com/users/yogi-dmt/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T20:35:32Z","updated_at":"2018-03-22T20:35:32Z","author_association":"NONE","body":"For those still have the same issue here's how i solved it...\r\n\r\n```\r\ndouble validatePrice(double price) {\r\n\t\tif (price < minTradePrice)\r\n\t\t\treturn 0;\r\n\t\tprice -= (price - minTradePrice) % tickSize;\r\n\t\tDouble toBeTruncated = new Double(price);\r\n\t\tprice = BigDecimal.valueOf(toBeTruncated).setScale(assetPrecision, RoundingMode.HALF_UP).doubleValue();\r\n\t\treturn price;\r\n\t}\r\n\tdouble validateAmount(double amount, double price) {\r\n\t\tamount -= (amount - minTradeQty) % stepSize;\r\n\t\tif (amount < minTradeQty || amount * price <= minNotional)\r\n\t\t\treturn 0;\r\n\t\treturn amount;\r\n\t}\r\n```"}}
{"actor":{"display_login":"yogi-dmt"}}