Bitcoin Forum
May 22, 2024, 10:11:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bittrex 'Bid/Ask Rate' vs. 'Actual Rate'  (Read 3205 times)
avp2306 (OP)
Sr. Member
****
Offline Offline

Activity: 1008
Merit: 359



View Profile
May 13, 2017, 11:12:52 PM
 #1

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.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
MΞTAWIN  THE FIRST WEB3 CASINO██████
██
██
██
██
██
██
██

██

██

██

██

██████
.
 PLAY NOW 
██████
██
██
██
██
██
██
██

██

██

██

██

██████
hoboDreamz
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
September 22, 2017, 07: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.
CryptoMasterMind
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 02, 2017, 05: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
leea-1334
Hero Member
*****
Offline Offline

Activity: 2254
Merit: 953


Temporary forum vacation


View Profile
October 02, 2017, 06: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.

.
..........
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
█████████████░░██████████████████████████░░███████████████████
███████████████░░██████████████████████████░░█████████████████
█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███████████████
█████████████████░░░░░░░░░░██░░██░░░░░░░░░░██░░███████████████
███████████████████░░░░░░██░░██████░░░░░░██░░█████████████████
█████████████████████░░░░░░██████████░░░░░░███████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
.....I AM BLACKJACK.FUN.....
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
█████████████░░██████████████████████████░░███████████████████
███████████████░░██████████████████████████░░█████████████████
█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███████████████
█████████████████░░░░░░░░░░██░░██░░░░░░░░░░██░░███████████████
███████████████████░░░░░░██░░██████░░░░░░██░░█████████████████
█████████████████████░░░░░░██████████░░░░░░███████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
..........
chiznitz
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500


View Profile WWW
October 02, 2017, 08: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 <insert cost/proceeds> for <insert coin amount> <Coinname>

The <insert cost/proceeds> includes commission so subtract .25% from this amount

<insert cost/proceeds> * .0025 = <the math will lead to commissions>

Subtract the commissions

<insert cost/proceeds> - fee = <price of each coin without commissions>

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

<price of each coin without commissions> / <insert coin amount> = Actual Rate

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


Looking for the best exchange? -> https://bittrex.com
mrbittt
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
October 05, 2017, 12:14:17 PM
 #6

Am also hitting an issue here too. Am trying to work through your template above however I got stuck on the line:
<insert cost/proceeds> - fee = <price of each coin without commissions>

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

Thanks,

-mrbittt
mrbittt
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
October 05, 2017, 12:28:33 PM
 #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
kcryptoinvest
Newbie
*
Offline Offline

Activity: 65
Merit: 0


View Profile
June 09, 2018, 05:58:59 PM
 #8

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.
mrbittt
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 19, 2018, 10: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
r01k
Jr. Member
*
Offline Offline

Activity: 84
Merit: 3


View Profile
October 25, 2018, 11: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!