elective-stereophonic
elective-stereophonic
Brainstorming: How to inverse MGW prices singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: Brainstorming: How to inverse MGW prices  (Read 2974 times)

TwinWinNerD

  • Hero Member
  • *****
  • Karma: +222/-116
  • Offline Offline
  • Posts: 2012
  • CEO BitPanda.com
    • View Profile
Brainstorming: How to inverse MGW prices
« on: August 18, 2014, 10:03:47 am »

Hey guys,

I know this was discussed before but I think to reach the average traded we need to make it possible to display MGWbtc prices inverse.

Everyone knows 0.000066 NXT/BTC but noone knows how expensive 15100 BTC/NXT is. (Hint it is the same, but without a calculater..)

Solutions:

Clientside:
Make a script that displays the prices like this:
 Sell Orders (32) 
AccountQuantity                   Price                          Total
NXT-CXMQ-5XH4-TSA8-F3TEC0.03          14'900    /
0.00006711        447

Sourcecodeside
NXT introduces an option that allows to display trades the way the asset issuer/user wants and accepts NXT/ASSET and ASSET/NXT orders.



Conclusion: I think the Clientside option is way easier to implement. Can the MGW package include such a script? Is it hard to write?
« Last Edit: August 18, 2014, 10:06:37 am by TwinWinNerD »
Logged

Sebastien256

  • Hero Member
  • *****
  • Karma: +169/-24
  • Offline Offline
  • Posts: 2823
  • ^LOOK UP^ = Nxt community!
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #1 on: August 18, 2014, 10:05:52 am »

very good idea +1.
Logged
Please drop your ideas concerning Nxt and/or NRS in this topic -> List of feature request for Nxt and/or NRS (with the full list in OP).

Pilot

  • Hero Member
  • *****
  • Karma: +47/-7
  • Offline Offline
  • Posts: 1241
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #2 on: August 18, 2014, 06:48:49 pm »

I don't think the NXT AE UI should changed at all.

But, I think the mgw UI can show BTC/NXT pair (using the AE data of course) the way people are used to seeing it on the exchange. This way, the mgw UI would be more that just the deposit/withdraw UI, but all the NXT/Coin exchange UI.
Logged

_mr_e

  • Hero Member
  • *****
  • Karma: +88/-18
  • Offline Offline
  • Posts: 956
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #3 on: August 18, 2014, 07:11:12 pm »

Agreed. This is definitely needed. Hard to quickly understand what the price is and easy to make a mistake. It's odd that I have to bid higher to get a lower price.
Logged

VanBreuk

  • Hero Member
  • *****
  • Karma: +362/-19
  • Offline Offline
  • Posts: 2772
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #4 on: August 18, 2014, 07:34:48 pm »

I understand this will be very helpful, but we need input from Lite MGW dev before anything.

I doubt mgwBTC/NXT pair can be the sole reason to add a trade pair display option in the AE, so as TwinWinNerD says, sourcecode side doesn't look feasible at the moment. 

And about having some sort of mini-AE for mgwCOINS inside of Multigateway... I don't know, that complicates the interface quite a lot. Ideally, you would have an option in the Multigateway UI page that allows user to select how the orders price is displayed in the corresponding coin asset in the AE, either NQT or 1/NQT.

Let's wait and see what longzai1988 thinks.
Logged
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #5 on: August 18, 2014, 07:38:07 pm »

I understand this will be very helpful, but we need input from Lite MGW dev before anything.

I doubt mgwBTC/NXT pair can be the sole reason to add a trade pair display option in the AE, so as TwinWinNerD says, sourcecode side doesn't look feasible at the moment. 

And about having some sort of mini-AE for mgwCOINS inside of Multigateway... I don't know, that complicates the interface quite a lot. Ideally, you would have an option in the Multigateway UI page that allows user to select how the orders price is displayed in the corresponding coin asset in the AE, either NQT or 1/NQT.

Let's wait and see what longzai1988 thinks.
Just say InstantDEX
all asset <-> asset pairs including NXT
either polarity, click a button and display "flips"
InstantDEX is the answer for this
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

allbits

  • Full Member
  • ***
  • Karma: +31/-3
  • Offline Offline
  • Posts: 221
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #6 on: August 18, 2014, 07:46:04 pm »

Do you have rough timing for InstantDex to be in beta?
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #7 on: August 18, 2014, 08:03:48 pm »

Do you have rough timing for InstantDex to be in beta?
next month
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

allbits

  • Full Member
  • ***
  • Karma: +31/-3
  • Offline Offline
  • Posts: 221
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #8 on: August 18, 2014, 11:12:40 pm »

Thanks.  I'm really looking forward to it.
Logged

Pilot

  • Hero Member
  • *****
  • Karma: +47/-7
  • Offline Offline
  • Posts: 1241
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #9 on: August 19, 2014, 08:37:40 pm »

I did a very quick and dirty bit of script you can use on NXTReporting to see the BTC price next to the NXT price.

Anyone can try this. If you open NXTreporting to the mgwBTC asset:

http://www.nxtreporting.com/?as=4551058913252105307

Then open up the JS console and run this:

Code: [Select]
$('#table_asset_asks').find('th:nth-child(3)').after("<td>BTC</td>")
$('#table_asset_asks').find('tr').each(function() { $(this).find('td:nth-child(3)').after('<td>' + (1 / parseFloat($(this).find('td:nth-child(3)').text().replace(/'/g,''))).toFixed(8) + '</td>') })
$('#table_asset_bids').find('th:nth-child(3)').after("<td>BTC</td>")
$('#table_asset_bids').find('tr').each(function() { $(this).find('td:nth-child(3)').after('<td>' + (1 / parseFloat($(this).find('td:nth-child(3)').text().replace(/'/g,''))).toFixed(8) + '</td>') })

It will add a BTC price column to the Ask/Bid tables. Granted, it is very dirty, not styled, doesn't survive resets or anything. But, it will provide an example on what could be done in the AE. When I get a chance I will see if I can make changes to the NXT Wallet to include these columns on mgwXXXX assets. It was very easy on this site cause it uses jQuery. I'm not sure if the wallet UI does.

Here is a screen cap of what it looks like after running this bit of script.



If anyone is interested and think this would add value to the wallet let me know. As you see, it's not very hard to do. Took me about 15 minutes.

Logged

TwinWinNerD

  • Hero Member
  • *****
  • Karma: +222/-116
  • Offline Offline
  • Posts: 2012
  • CEO BitPanda.com
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #10 on: August 19, 2014, 08:51:48 pm »

Thanks, works like a charm!

cc001

  • Hero Member
  • *****
  • Karma: +68/-4
  • Offline Offline
  • Posts: 829
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #11 on: August 19, 2014, 11:01:21 pm »

I did a very quick and dirty bit of script you can use on NXTReporting to see the BTC price next to the NXT price.

Anyone can try this. If you open NXTreporting to the mgwBTC asset:

http://www.nxtreporting.com/?as=4551058913252105307

Then open up the JS console and run this:

Code: [Select]
$('#table_asset_asks').find('th:nth-child(3)').after("<td>BTC</td>")
$('#table_asset_asks').find('tr').each(function() { $(this).find('td:nth-child(3)').after('<td>' + (1 / parseFloat($(this).find('td:nth-child(3)').text().replace(/'/g,''))).toFixed(8) + '</td>') })
$('#table_asset_bids').find('th:nth-child(3)').after("<td>BTC</td>")
$('#table_asset_bids').find('tr').each(function() { $(this).find('td:nth-child(3)').after('<td>' + (1 / parseFloat($(this).find('td:nth-child(3)').text().replace(/'/g,''))).toFixed(8) + '</td>') })

It will add a BTC price column to the Ask/Bid tables. Granted, it is very dirty, not styled, doesn't survive resets or anything. But, it will provide an example on what could be done in the AE. When I get a chance I will see if I can make changes to the NXT Wallet to include these columns on mgwXXXX assets. It was very easy on this site cause it uses jQuery. I'm not sure if the wallet UI does.

Here is a screen cap of what it looks like after running this bit of script.


hehe, great! :)
Logged
cc001 Personal - NXT-8RXS-2SSK-RNF2-HSNL8
NxtReporting.com - The Nxt Asset Exchange Portfolio Manager with Profitability Tracking - Donations are greatly appreciated on NXT-5W4G-GAR6-JHJP-H8ZTW

Nxtpls

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #12 on: August 19, 2014, 11:35:42 pm »

Very Cool! Makes it a lot easier
Logged
NXT-6WH7-WDAY-Y29B-EXXYS

m30188

  • Guest
Re: Brainstorming: How to inverse MGW prices
« Reply #13 on: August 20, 2014, 12:02:43 am »

James is gonna need blood pressure medication soon.
Logged

Pilot

  • Hero Member
  • *****
  • Karma: +47/-7
  • Offline Offline
  • Posts: 1241
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #14 on: August 20, 2014, 03:52:11 am »

James is gonna need blood pressure medication soon.

why?
Logged

Ezravdb

  • Hero Member
  • *****
  • Karma: +42/-12
  • Offline Offline
  • Posts: 910
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #15 on: August 20, 2014, 04:28:55 am »

Its a must imo for adoption
Logged
head

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Brainstorming: How to inverse MGW prices
« Reply #16 on: August 20, 2014, 09:23:51 am »

I did a very quick and dirty bit of script you can use on NXTReporting to see the BTC price next to the NXT price.


Longzai has a bitbucket version of the MGW client (cloned from wesley's client with MGW stuff added). This may eventually morph into a new client with other third party stuff added (possibly called Nxt Enhanced). If you were sent the link, perhaps you could figure out the best way to add inversion to the Asset Exchange in the client, do a pull request and that would be in the next release.
Logged
NXT-CSED-4PK5-AR4V-6UB5V
 

elective-stereophonic
elective-stereophonic
assembly
assembly