Author Topic: Arbitrage Opportunity... BitUSD bids are above market..  (Read 6497 times)

0 Members and 1 Guest are viewing this topic.

Offline JakeThePanda

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Arbitrage should bring everything in line. If you can add features to eliminate arbitrage then the market will work out the peg. Ideally there shouldn't be any arbitrage since this is a sign of iliquidity and inefficiency

It's a new market, give it time.  Arbitrage is eliminated by too many market participants competing to profit from the opportunity.  As the market becomes more efficient the arb opportunity is eliminated.  Make sure you include transaction fees in your arbitrage calculation.

Offline Riverhead

fill in the gaps...

Code: [Select]
while True:
    time.sleep(2)
    new_price = get_true_price()
    sec_since_update += 2
    if abs(new_price - last_price) / last_price > (SPREAD / 3):
        log("Price moved  -  old:  %f   new:  %f" % (last_price, new_price))
        log("Seconds since previous update:  %d" % sec_since_update)

        client.cancel_all_orders("USD", SYMBOL)
        client.wait_for_block()
        usd_balance = client.get_balance("USD")
        btsx_balance = client.get_balance(SYMBOL)
        client.submit_bid(0.3*(usd_balance * new_price), SYMBOL, new_price * (1+SPREAD), "USD")
        client.submit_ask(0.3*btsx_balance, SYMBOL, new_price * (1-SPREAD), "USD")
        last_price = new_price


Thanks Toast! I know what I'm doing tomorrow :).

Offline oldman

  • Hero Member
  • *****
  • Posts: 556
    • View Profile
if most people are just lazy and check the feeds.

feeds from multiple sources is the key here, Why make people run a bunch of windows to check other sources when we can keep it all in house

It's all about information feeds and signalling. When there is a profit opportunity it should signal directly in the interface so that this cannot happen. The user should select their mode, bull, bear, or market maker, then the opportunities should signal to them.

 +5% This would be ideal. Select asset and mode. Interface does the leg work. Would stabilize pegs and vastly improve user experience.

Offline luckybit

  • Hero Member
  • *****
  • Posts: 2921
    • View Profile
  • BitShares: Luckybit
if most people are just lazy and check the feeds.

feeds from multiple sources is the key here, Why make people run a bunch of windows to check other sources when we can keep it all in house

It's all about information feeds and signalling. When there is a profit opportunity it should signal directly in the interface so that this cannot happen. The user should select their mode, bull, bear, or market maker, then the opportunities should signal to them.

https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Gentso1

  • Hero Member
  • *****
  • Posts: 931
    • View Profile
  • BitShares: gentso
if most people are just lazy and check the feeds.

feeds from multiple sources is the key here, Why make people run a bunch of windows to check other sources when we can keep it all in house

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
Ok we definitely need something that shows on the bitshares client live the prices from the different exchanges so we know if we can buy cheap BITUSD and support the peg...
+5

Offline mf-tzo

  • Hero Member
  • *****
  • Posts: 1725
    • View Profile
Arbitrage should bring everything in line. If you can add features to eliminate arbitrage then the market will work out the peg. Ideally there shouldn't be any arbitrage since this is a sign of iliquidity and inefficiency

Offline JakeThePanda

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
I think we need to give the market time to get settled in.  Arb will bring everything in line.  I think.  :-\

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
if most people are just lazy and check the feeds.
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
I'm against it putting feeds directly in the client, it ties us to a source of failure
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline oldman

  • Hero Member
  • *****
  • Posts: 556
    • View Profile
Ok we definitely need something that shows on the bitshares client live the prices from the different exchanges so we know if we can buy cheap BITUSD and support the peg...

 +5%

Offline mf-tzo

  • Hero Member
  • *****
  • Posts: 1725
    • View Profile
Ok we definitely need something that shows on the bitshares client live the prices from the different exchanges so we know if we can buy cheap BITUSD and support the peg...




Offline bitmeat

  • Hero Member
  • *****
  • Posts: 1116
    • View Profile
BTC/USD   511
BTSX/BTC   0.00007
BTSX/USD   0.03577
BitUSD/BTSX   27.95638803

Need to put liquidity here, BitUSD/BTSX should be above 27 for the peg to work:

https://bter.com/trade/bitusd_btc

[EDIT] They reversed it, so it looks like the other exchanges:

https://bter.com/trade/btc_bitusd
« Last Edit: August 26, 2014, 03:57:01 pm by happypatty »

Offline CLains

  • Hero Member
  • *****
  • Posts: 2606
    • View Profile
  • BitShares: clains
That didn't last long

Time                    Type          Price(USD)/(BITUSD)
08-26 14:19:35     Buy             1.0000   1.0000

 +5%

Offline cygnify

  • Full Member
  • ***
  • Posts: 118
    • View Profile
My order history isn't actually in order of time/date. Anyone else get that?

What you mean you have an 'order history' for your account/wallet? A GUI one?

Yup, not ordered properly. From the GUI wallet ubuntu.


Offline bitmeat

  • Hero Member
  • *****
  • Posts: 1116
    • View Profile
From BTER current price:

BTSX/BTC 0.00008669
BTSX/USD 0.04395183
USD/BTSX 22.75218119

So price should be 22.75, however there are no buyers of BitUSD at the moment.

Offline bobohuy

  • Jr. Member
  • **
  • Posts: 27
    • View Profile
In bter.com, bid price for bitUSD/BTC is around 0.0023 and ask is 0.0021 . Why ask less than bid? And if 1 bitUSD = 1 USD then 1 bitUSD should be around 0.0019 BTC now. Why ppl want to buy at 0.0023? Any explain please

Offline bitmeat

  • Hero Member
  • *****
  • Posts: 1116
    • View Profile
As an example: BitUSD bids are way below market now. However liquidity is very thin, volatility is high, and there are no real buyers of BitUSD to help track the real price.

Offline bitmeat

  • Hero Member
  • *****
  • Posts: 1116
    • View Profile
Or just let people do it because it's profitable?
I wrote a shitty 200-line bot and made $~50 so far. Maybe I will do more work and make a better bot, then I will get paid more.
Why do you need AGS for this?

I didn't mean AGS funding. Also, you need to take into account liquidity if you deal with some serious amounts. Yes a silly bot will do just fine if there is a wide spread. But for BitUSD to hold value you need a more responsive and tight spread liquidity.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
My order history isn't actually in order of time/date. Anyone else get that?

What you mean you have an 'order history' for your account/wallet? A GUI one?
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
fill in the gaps...

Code: [Select]
while True:
    time.sleep(2)
    new_price = get_true_price()
    sec_since_update += 2
    if abs(new_price - last_price) / last_price > (SPREAD / 3):
        log("Price moved  -  old:  %f   new:  %f" % (last_price, new_price))
        log("Seconds since previous update:  %d" % sec_since_update)

        client.cancel_all_orders("USD", SYMBOL)
        client.wait_for_block()
        usd_balance = client.get_balance("USD")
        btsx_balance = client.get_balance(SYMBOL)
        client.submit_bid(0.3*(usd_balance * new_price), SYMBOL, new_price * (1+SPREAD), "USD")
        client.submit_ask(0.3*btsx_balance, SYMBOL, new_price * (1-SPREAD), "USD")
        last_price = new_price
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Bytemaster, I'm thinking the tool that I was going to do for the feeds, could be repurposed into a bot via the RPC, for interested folks who would:

1) profit from market inefficiencies
2) stabilize the system by running it

Any ideas on how to fund such project? have delegates who fund it get votes from the market participants?

Or just let people do it because it's profitable?
I wrote a shitty 200-line bot and made $~50 so far. Maybe I will do more work and make a better bot, then I will get paid more.
Why do you need AGS for this?
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
Bytemaster, I'm thinking the tool that I was going to do for the feeds, could be repurposed into a bot via the RPC, for interested folks who would:

1) profit from market inefficiencies
2) stabilize the system by running it

Any ideas on how to fund such project? have delegates who fund it get votes from the market participants?
You can propose this project to be funded by angel delegate. Not much aquired so far but it is doable. There is no other proposed projects (except one I plan to propose myself but some competition is OK).

Offline bitmeat

  • Hero Member
  • *****
  • Posts: 1116
    • View Profile
Bytemaster, I'm thinking the tool that I was going to do for the feeds, could be repurposed into a bot via the RPC, for interested folks who would:

1) profit from market inefficiencies
2) stabilize the system by running it

Any ideas on how to fund such project? have delegates who fund it get votes from the market participants?

Offline cygnify

  • Full Member
  • ***
  • Posts: 118
    • View Profile
My order history isn't actually in order of time/date. Anyone else get that?

Offline CoinHoarder

  • Hero Member
  • *****
  • Posts: 660
  • In Cryptocoins I Trust
    • View Profile
FYI-

on buy side, 18.5000 showing up above 18.50

The 18.5000 is me, I had typed in 18.500001 or something like that.. not sure if I'm selling at that and the number is truncated or if I'm selling at 18.5 and it's a glitch of some sort since I'm priority to the other 18.5

18.5000   350.00   6,475.00035
18.50   10,000.00   185,000.00
« Last Edit: August 26, 2014, 07:05:20 am by CoinHoarder »
https://www.decentralized.tech/ -> Market Data, Portfolios, Information, Links, Reviews, Forums, Blogs, Etc.
https://www.cryptohun.ch/ -> Tradable Blockchain Asset PvP Card Game

Offline CoinHoarder

  • Hero Member
  • *****
  • Posts: 660
  • In Cryptocoins I Trust
    • View Profile
That didn't last long

Ya glad I'm didn't pull the trigger.. I had the order in, just had to click accept and it dropped even more. :)

I think it could go a little lower.. bter isn't looking so good right now.
https://www.decentralized.tech/ -> Market Data, Portfolios, Information, Links, Reviews, Forums, Blogs, Etc.
https://www.cryptohun.ch/ -> Tradable Blockchain Asset PvP Card Game

Offline bytemaster

For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.


Offline bytemaster

Anyone wanting to buy some cheap BitUSD has an opportunity to get in right now...
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.