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,370 points
403 views

1 answer to this question.

0 votes

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,740 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,370 points
534 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,740 points
45,218 views
0 votes
1 answer

How do I add multiple recipients for transactions via Blockchain API?

Convert the recipes into JSON objects. x = ...READ MORE

answered Jul 6, 2018 in Blockchain by Perry
• 17,100 points
885 views
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
1,922 views
0 votes
0 answers

Blockchain.info wallet API callback

I am implementing blockchain.info wallet api to ...READ MORE

Jul 4, 2018 in Blockchain by sabby
• 4,370 points
885 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP