java - timmolter/XChange - Cryptsy GetFee -
i know may obscure api have idea how can fee market? i tried this system.out.println("\ncalculatefees:\n" + ((cryptsytradeserviceraw) tradeservice).calculatecryptsyfees(cryptsyordertype.sell, new bigdecimal("2"), new bigdecimal("286.62403820"))); and gives me wrong fee. looks cryptsy posts fees here: fees if(volumeinbtc < 0.5){ pairfee = 0.0033; //0.33% } else if(volumeinbtc >= 0.5 && volumeinbtc < 1.0){ pairfee = 0.0031; //0.31% } else if(volumeinbtc >= 1.0 && volumeinbtc < 5.0){ pairfee = 0.0029; //0.29% } else if(volumeinbtc >= 5 && volumeinbtc < 20){ pairfee = 0.0027; //0.27% } else if(volumeinbtc >= 20){ pairfee = 0.0025; //0.25% } else{ system.exit(1);//something went wrong } return pairfee; } ...