<p>The formula for <code>sell_order_Net_total</code> will be:</p>

<pre><code> sell_order_Net_total = sell_amount * sell_price * (1- sell_ex_txn_fee)
</code></pre>

<p>The final profit:</p>

<pre><code>Profit = sell_order_Net_total - buy_order_Net_total
</code></pre>

<p>Keep in mind that there are also transaction fees between the two exchanges. If you have traded all your DOGEs for BTC on 1 exchange, and BTC for DOGEs on the other, you'll want to mix both accounts with an equal amount of DOGE/BTC. The transaction fees should also be accounted for if you want to trade between exchanges.</p>

CC BY-SA 3.0
2014-07-02T12:04:12.963Z
Mathias &711 - Greatest job & greatest man. Thanks.
Jsd
CC BY-SA 3.0
2014-07-02T11:58:32.747Z
2014-07-02T11:58:32.747Z
Mathias711
<p>I have created a custom script to calculate your profit from trading between two exchanges. You can customize the Buy and Sell price. The script also takes into account the transfer fees and Buy and sell fees. I plan on working on this script more but I want to see how much interest I receive. Would like to include:</p>

<ul>
<li>Live updates on prices from different exchanges.</li>
<li>Quick trading with Trade Secrets and Trade Tokens.</li>
</ul>

<p>I can't wait to here the feedback.  <a href="http://theark.io/projects/btcarb/" rel="nofollow">http://theark.io/projects/btcarb/</a></p>

CC BY-SA 3.0
2016-04-20T18:39:14.200Z
2016-04-20T18:39:14.200Z
Stephen Kuehl
<p>I have made calculations based on 3 exchange buy and sell orders. (<strong>Cryptsy</strong>, <strong>C-cex</strong> and <strong>Bter</strong>) and have taken <strong>DOGE/BTC</strong> market into account.</p>

<p>Both cryptsy and C-cex have the same calculations to get the net total amount(Final amount including transaction fee) for both buy and sell order. 
In these exchanges Both buy and sell exchange transaction fee are  in terms of BTC  for DOGE/BTC market. But bter has different calculation on sell order and same calculation for buy order as in cryptsy and C-cex. Here  buy transaction fee in terms of BTC and sell transaction fee in terms of DOGE. </p>

<p>I am greatly confused about calcuting profit? Kindly look at both Cryptsy and Bter websites to see  the difference between sell orders.</p>

<p><strong>DOGE/BTC Market</strong></p>

<p><strong>case (1): Both buy and sell exchange transaction fee are  BTC (cryptsy-buy, C-cex- sell)</strong></p>

<p>Buy Exchange = Cryptsy</p>

<p>Sell Exchange =  C-Cex</p>

<p>buy amount = 1 DOGE</p>

<p>sell  amount = 1 DOGE</p>

<p>buy price =  0.0000038 BTC    //taken from cryptsy exchange  DOGE/BTC buy</p>

<p>sell price =   0.0000042 BTC  //taken from Ccex exchange  DOGE/BTC sell</p>

<p><strong>buy_ex_txn_fee = 0. 002 BTC (0.2%)</strong></p>

<p><strong>sell_ex_txn_fee  = 0. 0015 BTC (0.15%)</strong></p>

<p><strong>Buy order:</strong></p>

<pre><code>Total = buy_amount * buy_price (Total = 1 * 0.0000038 = 0.0000038 BTC) 

buy_txn_fee =  Total * buy_ex_txn_fee (buy_txn_fee  =  0.0000038 * 0. 002 = 0.000000008  BTC)

buy_order_Net_total =   Total +  buy_txn_fee (buy_order_Net_total = 0.000003808 BTC)
</code></pre>

<p><strong>Sell order:</strong></p>

<pre><code>Total = sell_amount * sell_price (Total = 1 * 0.0000042 = 0.0000042 BTC) 

sell_txn_fee =  Total * sell_ex_txn_fee (sell_txn_fee  =  0.0000038 * 0. 0015 = 
0.000000006  BTC)

sell_order_Net_total =   Total - sell_txn_fee (sell_order_Net_total =  0.000004194 BTC)
</code></pre>

<p><strong>Profit:</strong></p>

<pre><code> Profit =   sell_order_net_total – buy_order_net_total (Profit =0.000004194 BTC -  0.000003808  BTC = 0.000000386 BTC)
</code></pre>

<p><strong>Case (2): (For the same DOGE/BTC market buy transaction fee in terms of BTC(cryptsy) and sell transaction fee in terms of DOGE(Bter))</strong></p>

<p>Buy Exchange = Cryptsy</p>

<p>Sell Exchange =  Bter</p>

<p>buy amount = 1 DOGE</p>

<p>sell  amount = 1 DOGE</p>

<p>buy price =  0.0000038 BTC</p>

<p>sell price =   0.0000042 BTC</p>

<p><strong>buy_ex_txn_fee = 0. 002  BTC (0.2%)</strong></p>

<p><strong>sell_ex_txn_fee  = 0. 0018 DOGE (0.18%)</strong></p>

<p><strong>Buy order:</strong></p>

<pre><code>Total = buy_amount * buy_price (Total = 1 * 0.0000038 = 0.0000038 BTC) 

buy_txn_fee =  Total * buy_ex_txn_fee (buy_txn_fee  =  0.0000038 * 0. 002 = 0.000000008  BTC)

buy_order_Net_total =   Total +  buy_txn_fee (buy_order_Net_total = 0.000003808 BTC)
</code></pre>

<p><strong>Sell order:</strong></p>

<pre><code>Total = sell_amount * sell_price (Total = 1 * 0.0000042 = 0.0000042 BTC) 

**// sell_ex_txn_fee is in terms of DOGE. How should I calculate profit?**
</code></pre>

<p><strong>Profit:</strong></p>

<pre><code>Profit = ???
</code></pre>

<p>Am I heading in correct direction? Is there any other easiest way to calculate profit? If possible kindly explain me with sequence of steps?</p>

CC BY-SA 3.0
2014-07-02T09:15:13.250Z
What you are doing different from 'most' arbitrage options, is that you swap buy and sell. Arbitrage works because of the direct sell and buy options. What you are doing now, is **spread trading**. You wait untill someone else accept your offer, instead of the other way around. You depend on other people.
Mathias711
CC BY-SA 3.0
2014-07-02T09:16:55.417Z
Please join me in chat, as there are more things I have to say and ask, otherwise we'll spam the whole comment block here. I made a new room, and I have no friggin' clue how to force you in, so you have to come willingly :)
Mathias711
CC BY-SA 3.0
2014-07-02T09:23:25.503Z
@mathias711 - yeah sure. Give me the link
Jsd
CC BY-SA 3.0
2014-07-02T09:23:36.123Z
http://chat.stackexchange.com/rooms/15491/calculation-of-arbitrage-profit
Mathias711
<exchanges><arbitrage><exchange-fees><currencies>
Calculation of arbitrage profit
Jsd
# Calculation of arbitrage profit

(Asked by: username_0 on 2014-07-02)

I have made calculations based on 3 exchange buy and sell orders. (**Cryptsy**, **C-cex** and **Bter**) and have taken **DOGE/BTC** market into account.

Both cryptsy and C-cex have the same calculations to get the net total amount(Final amount including transaction fee) for both buy and sell order.
In these exchanges Both buy and sell exchange transaction fee are in terms of BTC for DOGE/BTC market. But bter has different calculation on sell order and same calculation for buy order as in cryptsy and C-cex. Here buy transaction fee in terms of BTC and sell transaction fee in terms of DOGE.

I am greatly confused about calcuting profit? Kindly look at both Cryptsy and Bter websites to see the difference between sell orders.

**DOGE/BTC Market**

**case (1): Both buy and sell exchange transaction fee are BTC (cryptsy-buy, C-cex- sell)**

Buy Exchange = Cryptsy

Sell Exchange = C-Cex

buy amount = 1 DOGE

sell amount = 1 DOGE

buy price = 0.0000038 BTC //taken from cryptsy exchange DOGE/BTC buy

sell price = 0.0000042 BTC //taken from Ccex exchange DOGE/BTC sell

**buy\_ex\_txn\_fee = 0. 002 BTC (0.2%)**

**sell\_ex\_txn\_fee = 0. 0015 BTC (0.15%)**

**Buy order:**

```
Total = buy_amount * buy_price (Total = 1 * 0.0000038 = 0.0000038 BTC) 

buy_txn_fee =  Total * buy_ex_txn_fee (buy_txn_fee  =  0.0000038 * 0. 002 = 0.000000008  BTC)

buy_order_Net_total =   Total +  buy_txn_fee (buy_order_Net_total = 0.000003808 BTC)

```

**Sell order:**

```
Total = sell_amount * sell_price (Total = 1 * 0.0000042 = 0.0000042 BTC) 

sell_txn_fee =  Total * sell_ex_txn_fee (sell_txn_fee  =  0.0000038 * 0. 0015 = 
0.000000006  BTC)

sell_order_Net_total =   Total - sell_txn_fee (sell_order_Net_total =  0.000004194 BTC)

```

**Profit:**

```
 Profit =   sell_order_net_total – buy_order_net_total (Profit =0.000004194 BTC -  0.000003808  BTC = 0.000000386 BTC)

```

**Case (2): (For the same DOGE/BTC market buy transaction fee in terms of BTC(cryptsy) and sell transaction fee in terms of DOGE(Bter))**

Buy Exchange = Cryptsy

Sell Exchange = Bter

buy amount = 1 DOGE

sell amount = 1 DOGE

buy price = 0.0000038 BTC

sell price = 0.0000042 BTC

**buy\_ex\_txn\_fee = 0. 002 BTC (0.2%)**

**sell\_ex\_txn\_fee = 0. 0018 DOGE (0.18%)**

**Buy order:**

```
Total = buy_amount * buy_price (Total = 1 * 0.0000038 = 0.0000038 BTC) 

buy_txn_fee =  Total * buy_ex_txn_fee (buy_txn_fee  =  0.0000038 * 0. 002 = 0.000000008  BTC)

buy_order_Net_total =   Total +  buy_txn_fee (buy_order_Net_total = 0.000003808 BTC)

```

**Sell order:**

```
Total = sell_amount * sell_price (Total = 1 * 0.0000042 = 0.0000042 BTC) 

**// sell_ex_txn_fee is in terms of DOGE. How should I calculate profit?**

```

**Profit:**

```
Profit = ???

```

Am I heading in correct direction? Is there any other easiest way to calculate profit? If possible kindly explain me with sequence of steps?

**Tags:** exchanges, arbitrage, exchange-fees, currencies

> **Comments:**
> **username_1**: What you are doing different from 'most' arbitrage options, is that you swap buy and sell. Arbitrage works because of the direct sell and buy options. What you are doing now, is **spread trading**. You wait untill someone else accept your offer, instead of the other way around. You depend on other people.  
> **username_1**: Please join me in chat, as there are more things I have to say and ask, otherwise we'll spam the whole comment block here. I made a new room, and I have no friggin' clue how to force you in, so you have to come willingly :)  
> **username_0**: @username_1 - yeah sure. Give me the link  
> **username_1**: http://chat.stackexchange.com/rooms/15491/calculation-of-arbitrage-profit  

---

## 2 answers

### Answer by username_1 on 2014-07-02. Score: 3 | Accepted answer

The formula for `sell_order_Net_total` will be:

```
 sell_order_Net_total = sell_amount * sell_price * (1- sell_ex_txn_fee)

```

The final profit:

```
Profit = sell_order_Net_total - buy_order_Net_total

```

Keep in mind that there are also transaction fees between the two exchanges. If you have traded all your DOGEs for BTC on 1 exchange, and BTC for DOGEs on the other, you'll want to mix both accounts with an equal amount of DOGE/BTC. The transaction fees should also be accounted for if you want to trade between exchanges.

> **Comments:**
> **username_0**: Mathias &711 - Greatest job & greatest man. Thanks.  

---

### Answer by username_2 on 2016-04-20. Score: 0

I have created a custom script to calculate your profit from trading between two exchanges. You can customize the Buy and Sell price. The script also takes into account the transfer fees and Buy and sell fees. I plan on working on this script more but I want to see how much interest I receive. Would like to include:

* Live updates on prices from different exchanges.
* Quick trading with Trade Secrets and Trade Tokens.

I can't wait to here the feedback. <http://theark.io/projects/btcarb/>


---

