Author

Topic: Bittrex 'Bid/Ask Rate' vs. 'Actual Rate' (Read 3205 times)

jr. member
Activity: 84
Merit: 3
October 25, 2018, 07:19:42 PM
#10
Ok I've finally solved the problem with the Bittrex fees and 8dp truncation etc. BTCBTC
[...]
In summary: Since Bittrex truncates to 8.dp. any calculations taken off Bittrex's unit figures will be incorrect. Better to rely on Bittrex's own reported Price and CommissionPaid fields and work back from there to get unit figures (if you want to see more than 8 d.p).

Thanks for this, following Bittrex numbers my math was not adding up either. I ended up starting off off the amount received in the wallet for the trade and the Units Filled.
newbie
Activity: 5
Merit: 0
August 19, 2018, 06:24:49 AM
#9
Ok I've finally solved the problem with the Bittrex fees and 8dp truncation etc. BTCBTC

Steps to reproduce:
1. See last order for BTC-POWER on the image below.
2. Notice how the LIMIT was 0.00002992 and the quantity is 99.903441.
  • The actual order came in at 0.00002993.
  • Multiplied together we get 0.002989111 BTC.
  • However Bittrex reports a total of 0.0029901.
  • The difference between 0.002989111 and 0.0029901 is 0.0000099 BTC.

So what is going on?
1. Bittrex is correctly returning the PricePerUnit (actual) as 0.00002992.
2. However you can't rely on this calculation: total price paid = PricePerUnit (actual) * total quantity.
  • Why? Because the PricePerUnit (actual) is probably more like 0.0000299299 and the last 99 have been truncated to make 0.00002992.
  • So 0.0000299299 * 99.903441 = 0.0029901 which is correct.
  • However 0.00002992 * 99.903441 = 0.002989111 which is incorrect (because we lost decimal places 9 and 10).

What's the solution?
  • 1) Take Bittrex's reported PricePerUnit (actual) which is correct to 8 d.p. but don't make any calculations with it.
  • 2) Take Bittrex's Price field as correct and use that as your total price paid in BTC.
  • 3) Take Bittrex's CommissionPaid field as correct.

In summary: Since Bittrex truncates to 8.dp. any calculations taken off Bittrex's unit figures will be incorrect. Better to rely on Bittrex's own reported Price and CommissionPaid fields and work back from there to get unit figures (if you want to see more than 8 d.p).

https://dzwonsemrish7.cloudfront.net/items/0t0b0H3n0m2C100W0S3c/CryptoFlip.jpg
newbie
Activity: 65
Merit: 0
The "Bid/Ask" price and the "Actual Rate", the first one is what you were trying to buy at, the Actual rate is the average price you ended up paying. Not much of a difference in this screenshot, but there are times where you get a better price than you bargained for.
newbie
Activity: 5
Merit: 0
October 05, 2017, 08:28:33 AM
#7
See attached link for two orders for BTC-OMG and BTC-TRIG.
https://d26dzxoao6i3hh.cloudfront.net/items/3n1X3g403q272y3J3g3Y/two-orders-calculations_jpg_and_two-bittrex-orders-csv-downloaded-from-bittrex_jpg_and_Downloads.jpg

Both orders don't seem to tally up on Bittrex.

Take BTC-TRIG for example. Bittrex reports the Price (by which I think they mean the quantity & actual rate received) as 0.011807. However:
Quantity x actual rate BTC = 57.43825388 x 0.00020555 = 0.01180643 (difference of 0.00000057).

Where does that difference of 0.00000057 come from? The commission is 0.00002951 so I don't think it's that.

Very confused. Can anyone shed some light?

Thanks,

-mrbittt
newbie
Activity: 5
Merit: 0
October 05, 2017, 08:14:17 AM
#6
Am also hitting an issue here too. Am trying to work through your template above however I got stuck on the line:
- fee =

What does "- fee" mean? It isn't mentioned anywhere else.

Thanks,

-mrbittt
hero member
Activity: 574
Merit: 500
October 02, 2017, 04:37:41 PM
#5
In ‘My Order History’, what is the meaning of ‘Actual Rate’?  Also, how is ‘Costs / Proceeds’ field computed?

As I understand it (or so I thought), 'Actual Rate' is the actual rate I paid instead of what I bid and ‘Costs / Proceeds’ = ‘Actual Rate’ x ‘Units Filled’

However, it seems that currently it computes ‘Costs / Proceeds’ = ‘Bid/Ask’ x ‘Units Filled’

If Bittrex keeps the difference, this feels a bit scammy..

Is this normal for exchanges, can someone clarify this. Thanks.

Hi,

You can use the following template to figure out the prices.  Bittrex does not keep anything, the math always works out perfectly using the equation below.

You paid for

The includes commission so subtract .25% from this amount

* .0025 =

Subtract the commissions

- fee =

You now have the price of each coin without commissions, divide that by the number of coins and you get the actual rate.

/ = Actual Rate

Doing any multiplication or division of 2 eight digit numbers will always lose precision, we truncate at the 8th decimal place.

hero member
Activity: 2240
Merit: 953
Temporary forum vacation
October 02, 2017, 02:32:42 PM
#4
Strange that nobody seems to have updated or respond to this since May. The original assumption appears to be correct, and should be anyway. What you get is what should be reported. Now for me, all my actual trades have been exactly what I bid/ask for, since I bid and ask according to what is available on the orderbook anyway.

I think I can only recall having one trade executed by getting filled, but I cannot find the history now.
newbie
Activity: 2
Merit: 0
October 02, 2017, 01:54:09 PM
#3
In ‘My Order History’, what is the meaning of ‘Actual Rate’?  Also, how is ‘Costs / Proceeds’ field computed?

As I understand it (or so I thought), 'Actual Rate' is the actual rate I paid instead of what I bid and ‘Costs / Proceeds’ = ‘Actual Rate’ x ‘Units Filled’

However, it seems that currently it computes ‘Costs / Proceeds’ = ‘Bid/Ask’ x ‘Units Filled’

If Bittrex keeps the difference, this feels a bit scammy..

Is this normal for exchanges, can someone clarify this. Thanks.

did you get the asnwer to this? I am a bit confused myself as well. If you find please let me know
newbie
Activity: 23
Merit: 0
September 22, 2017, 03:32:03 PM
#2
Did you figure out the answer to this question. Im trying to code automatic fee substraction/addition but my calc now and then is off by 1 satoshi.
sr. member
Activity: 966
Merit: 340
In ‘My Order History’, what is the meaning of ‘Actual Rate’?  Also, how is ‘Costs / Proceeds’ field computed?

As I understand it (or so I thought), 'Actual Rate' is the actual rate I paid instead of what I bid and ‘Costs / Proceeds’ = ‘Actual Rate’ x ‘Units Filled’

However, it seems that currently it computes ‘Costs / Proceeds’ = ‘Bid/Ask’ x ‘Units Filled’

If Bittrex keeps the difference, this feels a bit scammy..

Is this normal for exchanges, can someone clarify this. Thanks.
Jump to: