timmolter/XChange - Cryptsy GetFee

timmolter/XChange - Cryptsy GetFee

我知道这可能是一个晦涩难懂的问题 api 但是有人知道我如何获得市场费用吗?

我试过了

system.out.println("\nCalculateFees:\n"
                + ((CryptsyTradeServiceRaw) TradeService).calculateCryptsyFees(CryptsyOrderType.Sell, new BigDecimal("2"), new BigDecimal("286.62403820")));

它给了我错误的费用。

cryptsy 似乎在此处发布了他们的费用: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;
    }