timmolter/XChange - Cryptsy GetFee

0 votes

how I can get the fee for a market?

I tried this

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

and it gives me the wrong fee.

Sep 10, 2018 in Blockchain by slayer
• 29,170 points
32 views

1 answer to this question.

0 votes

Looks like cryptsy posts their 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;
    }
answered Sep 10, 2018 by digger
• 26,550 points

Related Questions In Blockchain

0 votes
1 answer

Basic pusher connection to cryptsy using javascript

Try this <script src="//js.pusher.com/2.2/pusher.min.js" type="text/javascript"></script> <script type="text/javascript"> var pusher = ...READ MORE

answered Sep 11, 2018 in Blockchain by slayer
• 29,170 points
43 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 26,550 points
4,511 views
0 votes
1 answer
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
173 views