Bitcoin Forum
May 10, 2024, 06:51:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitPay equivalent as script collection - possible?  (Read 708 times)
Sukrim (OP)
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
April 17, 2013, 02:17:56 PM
 #1

I'm still wondering if it is feasible to do the following:

Instead of signing up with BitPay, emulate their way of operating by signing up on some exchanges, depositing some USD and BTC on each and use their API to automatically trade.

Once the payment API gets included in the bitcoin clients it should then be possible to accept bitcoin payments like this (e.g. a 100 USD payment with ~100 USD/BTC prices):
1) get current market average, add a few % for slippage - in this case request 1.05 BTC from the client and a payback address.
2) put a market order for 100 USD on the cheapest exchange - fees and etc. included it costs you 0.99876521 BTC
3) mark the payment as confirmed in your system
4) send back the 0.05123479 BTC change to the user and the 0.99876521 BTC to the exchange to top up the exchange account.
5) mabye even send a signed statement to the user that you exchanged at 0.99876521, so he knows which rate was actually used.

You'd only have to pay BTC network + exchange fees and users might have to trust you with a slightly higher amount than they need to pay for a minute or so. The whole script etc. can be open source, all secrets you'd need to enter would be deposit addresses for exchanges + API keys. For merchants selling BTC it could work the other way round as well, though you might need coloured coins or Ripple to automatically track irreversible USD transfers.

There is already a library in the works that combines APIs from several exchanges. Am I missing something or is the missing thing really just some glue between already existing parts?

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Stampbit
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
May 04, 2013, 10:31:21 PM
 #2

Neat idea, but one advantage bitpay offers is to clear out your account at the end of each day. If you were to wait on an exchanger it would take 3-5 days to see it. Thats 3-5x as much liquidity you have to maintain. And they will guarantee a dollar amount for the sale even if the exchange takes a dive.
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!