bitex icon indicating copy to clipboard operation
bitex copied to clipboard

Keep getting signed out... just for using the UI

Open pjz opened this issue 9 years ago • 3 comments

I'm in the process of trying to figure out how to adapt bitex to handle trading pure equities. To start I added (to config/bootstrap/demo.ini):

under [currencies]:

BNL=[ "BNL" , "B"  , "Buy'N'Large" ,  true,  1,    "{:,.0f}",     "B #,##0.00000000;(B #,##0.00000000)" ,  {:,.0f}",           "B #,##0.00000000;(B #,##0.0000000)"          ]

and under [instruments]:

BNLUSD=["BNLUSD", "USD", "Buy 'N Large instrument"]  

...with my thinking being that it might be okay to just set up a fake currency that can't be traded and is, essentially, 'shares of BNL' that happen to be purchased using BNLUSD. Sadly, doing this causes the frontend to... misbehave. Trying to change the Market dropdown in the sidebar from BTC / USD to 'Buy 'N Large instrument' causes a logout. As does just trying to go to the ledger.

Hints? help? What did I overlook?

pjz avatar May 07 '15 20:05 pjz

take a look at the broker currencies record.

yours should be currencies=USD,BNL

pinhopro avatar May 07 '15 20:05 pinhopro

While that does end up getting BNL listed in the side bar, clicking 'Ledger' still results in being logged out - though this time, it then attempts to re-log-in from the #start page, which either: 1) fails if you're trying to log in as the admin, so you get the 'bad username or password' popup or 2) works if you're logging in as a user...but then you end up on the 'Order Book' page again.

pjz avatar May 08 '15 16:05 pjz

Okay, so now I've tried backing out all those changes... and I'm still getting signed out in the same way. I've nuked the sqlite databases and rebuilt them using the basic demo.ini, but I still get kicked back to the main login screen if I try and navigate to any other 'page' than the basic Order Book.

pjz avatar May 15 '15 18:05 pjz