BitShares Forum

Main => Technical Support => Topic started by: monsterer on October 11, 2014, 01:07:18 pm

Title: Should shorts be included with asks, and covers in bids?
Post by: monsterer on October 11, 2014, 01:07:18 pm
When building a site to show the orderbook of a market, should shorts be included with the asks and covers with the bids?
Title: Re: Should shorts be included with asks, and covers in bids?
Post by: xeroc on October 11, 2014, 02:38:26 pm
When building a site to show the orderbook of a market, should shorts be included with the asks and covers with the bids?
Why not ..
just make sure that you cannot short BTSX .... and as such always cover positions with BTSX!

besides that, the GUI used 4 tables ask,bid,short,cover originally and now has all shorts grouped into one single position in the order book .. when I remember correctly .. (not much of a trader here)
Title: Re: Should shorts be included with asks, and covers in bids?
Post by: monsterer on October 11, 2014, 05:15:33 pm
Well, I ask because looking at blockchain_market_order_history, I've got 'short_order' appearing in 'bid_type', which doesn't make any sense to me, since a short order is a sell order and bid is buy....?
Title: Re: Should shorts be included with asks, and covers in bids?
Post by: tonyk on October 11, 2014, 05:21:27 pm
Well, I ask because looking at blockchain_market_order_history, I've got 'short_order' appearing in 'bid_type', which doesn't make any sense to me, since a short order is a sell order and bid is buy....?

In real life I tend to think like you, but in blockchain_market_order_history 'short order' is actually a buy order for BTSX.
Title: Re: Should shorts be included with asks, and covers in bids?
Post by: xeroc on October 11, 2014, 06:51:02 pm
Well, I ask because looking at blockchain_market_order_history, I've got 'short_order' appearing in 'bid_type', which doesn't make any sense to me, since a short order is a sell order and bid is buy....?

In real life I tend to think like you, but in blockchain_market_order_history 'short order' is actually a buy order for BTSX.
@monsterer: If you get confused by that .. don't blame your self .. I get confused to .. AAAALLLL the time .. ask/bid/sell/buy/quote/base .. puhhh...
Title: Re: Should shorts be included with asks, and covers in bids?
Post by: monsterer on October 11, 2014, 09:23:19 pm
In real life I tend to think like you, but in blockchain_market_order_history 'short order' is actually a buy order for BTSX.

Hmmm, and I take it then, cover must be a sell?

Is there any deeper explanation of why this seems to be backwards?