<p>Those are Bitstamp trading fees, not Bitcoin transaction fees. Trading fees are automatically calculated and deducted by Bitstamp when executing a trade.</p>

<p>For choosing the right Bitcoin fee, use <code>bitcoin-cli estimatesmartfee</code> or one of the many web services.</p>

CC BY-SA 3.0
2018-02-25T01:24:09.240Z
That's not what I meant. I need to know what the Bitstamp trading fees are before placing an order in order to estimate the profit of a trade. It doesn't make sense for a service to charge you a fee without letting you know what it will be ahead of time.
Gili
CC BY-SA 3.0
2018-02-24T21:09:38.003Z
2018-02-24T21:09:38.003Z
ens
<p>From the API documentation available at <a href="https://www.bitstamp.net/api/" rel="nofollow noreferrer">https://www.bitstamp.net/api/</a></p>

<p>The private endpoint <code>https://www.bitstamp.net/api/v2/balance/</code> includes the fees for all pairs.</p>

<p>The private endpoint <code>https://www.bitstamp.net/api/v2/balance/{currency_pair}/</code> includes the fee for the specified pair.</p>

CC BY-SA 3.0
2018-02-26T12:41:44.480Z
Are you saying that the fee returned by the balance api adjusts the fee in response to the 30 day trailing volume?
Gili
CC BY-SA 3.0
2018-02-27T02:03:03.370Z
@Gili It's a private endpoint so I would assume so
Ron
CC BY-SA 3.0
2018-02-26T09:32:00.977Z
2018-02-26T09:32:00.977Z
Ron
<p>Every exchange has a predetermined fee structure for any financial transaction that you perform on the exchange. Also this fee is subject to the volume you have traded.</p>

<p>From the links you have provided, the API documentation page contains the user transactions section which would return the list of all transactions you have done. 
You can filter out the last 30days transactions and get the USD volume from that.</p>

CC BY-SA 3.0
2018-02-25T22:19:55.940Z
That's nice but you didn't answer my question.
Gili
CC BY-SA 3.0
2018-02-25T22:25:56.713Z
I'm sorry I did not check the links provided by you. I have updated the answer. @Gili
Shabahat M. Ayubi
CC BY-SA 3.0
2018-02-25T22:27:39.610Z
also the api returns the fee rates as well.
Shabahat M. Ayubi
CC BY-SA 3.0
2018-02-25T21:55:30.433Z
2018-02-25T22:25:15.137Z
2018-02-25T22:25:15.137Z
Shabahat M. Ayubi
<p>I'd like to determine what trading fees to expect before placing an order.</p>

<p>According to <a href="https://www.bitstamp.net/fee_schedule/" rel="nofollow noreferrer">https://www.bitstamp.net/fee_schedule/</a> Bitstamp's trading fees depend upon the USD total of a customer’s last 30 days worth of transactions.</p>

<p>How can one calculate this amount using <a href="https://www.bitstamp.net/api/" rel="nofollow noreferrer">the Bitstamp API</a>? It doesn't seem to be possible.</p>

<api><bitstamp>
How to calculate trading fees ahead of time?
Gili
# How to calculate trading fees ahead of time?

(Asked by: username_0 on 2018-02-24)

I'd like to determine what trading fees to expect before placing an order.

According to <https://www.bitstamp.net/fee_schedule/> Bitstamp's trading fees depend upon the USD total of a customer’s last 30 days worth of transactions.

How can one calculate this amount using [the Bitstamp API](https://www.bitstamp.net/api/)? It doesn't seem to be possible.

**Tags:** api, bitstamp


---

## 3 answers

### Answer by username_1 on 2018-02-24. Score: 1

Those are Bitstamp trading fees, not Bitcoin transaction fees. Trading fees are automatically calculated and deducted by Bitstamp when executing a trade.

For choosing the right Bitcoin fee, use `bitcoin-cli estimatesmartfee` or one of the many web services.

> **Comments:**
> **username_0**: That's not what I meant. I need to know what the Bitstamp trading fees are before placing an order in order to estimate the profit of a trade. It doesn't make susername_1e for a service to charge you a fee without letting you know what it will be ahead of time.  

---

### Answer by username_2 on 2018-02-26. Score: 1

From the API documentation available at <https://www.bitstamp.net/api/>

The private endpoint `https://www.bitstamp.net/api/v2/balance/` includes the fees for all pairs.

The private endpoint `https://www.bitstamp.net/api/v2/balance/{currency_pair}/` includes the fee for the specified pair.

> **Comments:**
> **username_0**: Are you saying that the fee returned by the balance api adjusts the fee in response to the 30 day trailing volume?  
> **username_2**: @username_0 It's a private endpoint so I would assume so  

---

### Answer by username_3 on 2018-02-25. Score: 1

Every exchange has a predetermined fee structure for any financial transaction that you perform on the exchange. Also this fee is subject to the volume you have traded.

From the links you have provided, the API documentation page contains the user transactions section which would return the list of all transactions you have done.
You can filter out the last 30days transactions and get the USD volume from that.

> **Comments:**
> **username_0**: That's nice but you didn't answer my question.  
> **username_3**: I'm sorry I did not check the links provided by you. I have updated the answer. @username_0  
> **username_3**: also the api returns the fee rates as well.  

---

