Bitcoin Forum
May 06, 2024, 11:32:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do exchange transactions work?  (Read 222 times)
sjefdeklerk (OP)
Jr. Member
*
Offline Offline

Activity: 154
Merit: 8

SODL


View Profile
February 18, 2018, 05:51:52 PM
 #1

I wonder what exactly happens if an exchange transaction takes place. I've been looking at my own bitfinex btc wallet adress and I see that my deposits get moved into a single wallet that seems to be the general Bitfinex wallet. This general bitfinex wallet moves btc's to the cold wallet whenever the btc amount gets too big and moves it back whenever the amount gets too low.

So what exactly happens when I sell BTC at bitfinex to somebody else ? The amount of BTC remains exactly the same in the bitfinex wallet, it just has different owners. This seems to happen completely off chain, but how does it work. Does bitfinex simply have a database where they keep track of who owns what part of their wallet? And is it even possible to identify for example who is buying how much? It seems this is impossible?

Thanks
1715038376
Hero Member
*
Offline Offline

Posts: 1715038376

View Profile Personal Message (Offline)

Ignore
1715038376
Reply with quote  #2

1715038376
Report to moderator
1715038376
Hero Member
*
Offline Offline

Posts: 1715038376

View Profile Personal Message (Offline)

Ignore
1715038376
Reply with quote  #2

1715038376
Report to moderator
1715038376
Hero Member
*
Offline Offline

Posts: 1715038376

View Profile Personal Message (Offline)

Ignore
1715038376
Reply with quote  #2

1715038376
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715038376
Hero Member
*
Offline Offline

Posts: 1715038376

View Profile Personal Message (Offline)

Ignore
1715038376
Reply with quote  #2

1715038376
Report to moderator
1715038376
Hero Member
*
Offline Offline

Posts: 1715038376

View Profile Personal Message (Offline)

Ignore
1715038376
Reply with quote  #2

1715038376
Report to moderator
1715038376
Hero Member
*
Offline Offline

Posts: 1715038376

View Profile Personal Message (Offline)

Ignore
1715038376
Reply with quote  #2

1715038376
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6587


Just writing some code


View Profile WWW
February 18, 2018, 06:31:00 PM
Merited by ABCbits (2), HeRetiK (1), AGD (1)
 #2

Exchanges do not make transactions on chain, that would be inefficient and costly. Rather they have a central database with their customer's balances. So when you make a trade, they just update balances in their database. The same happens when you deposit or withdraw, a value in their database is updated.

When you deposit coins into your exchange wallet, they just change values in their database. The coins are no longer yours nor are they identifiable to you once they enter an exchange. Don't think of those coins as "your coins" but rather "the exchange's coins". What they do with deposits is much like a traditional bank does - they update a balance in their database which is effectively a promise to you that they will give you that amount in the future when you ask for it (aka withdraw). The coins themselves will be put in some wallet and then later used for someone else's withdrawals. The transactions that happen within the exchange itself happen on a database and they can keep logs of everything, so they do actually know how much you had, when, and how much you traded.

sjefdeklerk (OP)
Jr. Member
*
Offline Offline

Activity: 154
Merit: 8

SODL


View Profile
February 18, 2018, 08:50:58 PM
 #3

Exchanges do not make transactions on chain, that would be inefficient and costly. Rather they have a central database with their customer's balances. So when you make a trade, they just update balances in their database. The same happens when you deposit or withdraw, a value in their database is updated.

When you deposit coins into your exchange wallet, they just change values in their database. The coins are no longer yours nor are they identifiable to you once they enter an exchange. Don't think of those coins as "your coins" but rather "the exchange's coins". What they do with deposits is much like a traditional bank does - they update a balance in their database which is effectively a promise to you that they will give you that amount in the future when you ask for it (aka withdraw). The coins themselves will be put in some wallet and then later used for someone else's withdrawals. The transactions that happen within the exchange itself happen on a database and they can keep logs of everything, so they do actually know how much you had, when, and how much you traded.

Thanks mate!
irukandji
Sr. Member
****
Offline Offline

Activity: 629
Merit: 258



View Profile
February 21, 2018, 07:45:17 AM
 #4

The exchange takes ownership of all your coins in their wallet, i.e. they have the private key. Then they give you a credit on their own internal ledger (which really gives you nothing) Then if they like they give them back when you ask for them
posi
Hero Member
*****
Offline Offline

Activity: 2240
Merit: 579


Leading Crypto Sports Betting & Casino Platform


View Profile
February 21, 2018, 08:58:55 PM
 #5

Exchanges do not make transactions on chain, that would be inefficient and costly. Rather they have a central database with their customer's balances. So when you make a trade, they just update balances in their database. The same happens when you deposit or withdraw, a value in their database is updated.

When you deposit coins into your exchange wallet, they just change values in their database. The coins are no longer yours nor are they identifiable to you once they enter an exchange. Don't think of those coins as "your coins" but rather "the exchange's coins". What they do with deposits is much like a traditional bank does - they update a balance in their database which is effectively a promise to you that they will give you that amount in the future when you ask for it (aka withdraw). The coins themselves will be put in some wallet and then later used for someone else's withdrawals. The transactions that happen within the exchange itself happen on a database and they can keep logs of everything, so they do actually know how much you had, when, and how much you traded.


If that's how the exchange transaction work. So, what the reason behind some exchange site charging their account holder some certain fee for making deposit since the network fee is not needed to be pay to miner?

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
February 21, 2018, 09:15:17 PM
 #6

If that's how the exchange transaction work. So, what the reason behind some exchange site charging their account holder some certain fee for making deposit since the network fee is not needed to be pay to miner?

It depends on the cryptocurrency.
To initialise a ripple wallet you need to have a minimum of 20 XRP as a reserve so some exchanges like Poloniex charge you that 20XRP to create a wallet.

For ethereum there is a challenge on how to store user funds -- as an address or as a smart contract. They can either initialise a smart contract for every user (which consumes gas for contract creation), or create a new address (external Account) for each customer which will also incur gas fees for moving the deposited eth by the customer to the cold wallet. (It's worse for tokens since they'll have to seed every address with ETH for gas in order to move the tokens)
Some exchanges externalise this cost to customers by requiring a deposit fee so they can move the ether or tokens deposited, while others eat the cost.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
February 21, 2018, 09:20:39 PM
 #7

If that's how the exchange transaction work. So, what the reason behind some exchange site charging their account holder some certain fee for making deposit since the network fee is not needed to be pay to miner?

There isn't any good reason to charge a Bitcoin deposit fee. As far as I know, HitBTC charges about 0.0006 BTC every time you deposit Bitcoin. They introduced this fee 2 months ago when Bitcoin network was overloaded. The reason why they introduced this fee is because they want to provide stable service. They could have come up with a better excuse. They still charge 0.001 BTC withdrawal fee. Ridiculous, we should ditch exchanges which behave like that. I can't wait to see fully working atomic swaps.

Source: https://blog.hitbtc.com/introducing-deposit-fees-for-bitcoin/
btctousd81
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
February 22, 2018, 02:42:58 AM
 #8

everything happens on exchange excecpt withdrawals are just numbers game.

you deposit x btc to your deposit wallet,
exchange see those x btc added and gives you x btc to play with .

you sell those x btc to another user.
exchange removes those x btc from your account and adds those x btc in who have purchased your btc.

this is all done in internal database.

the only time person withdrwas their coins , is when they create a transaction and broadcast/push to the the specific blockchain network/nodes.

so you can seee its , just numbers game for them.

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!