Skip to content

Commit

Permalink
removed table lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincolyer committed Sep 5, 2022
1 parent bfcc4a5 commit ec7293d
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions node-polo.demo.js
Expand Up @@ -363,12 +363,35 @@ if (SAVEDATA) {
})
}



/////////////////////////////////////////////////
// tableOfMarkets
// an example
//
// instantiate
var tableOfMarkets = new Table({
chars: {
'top': '',
'top-mid': '',
'top-left': '',
'top-right': '',
'bottom': '',
'bottom-mid': '',
'bottom-left': '',
'bottom-right': '',
'left': '',
'left-mid': '',
'mid': '',
'mid-mid': '',
'right': '',
'right-mid': '',
'middle': ' '
},
style: {
'padding-left': 0,
'padding-right': 0
},
head: ['Market', 'Price', 'Changed Daily %'],
colWidths: [20, 20, 20],
colAligns: ['left', 'right', 'right']
Expand Down Expand Up @@ -396,6 +419,27 @@ for (const symbol of interestingMarkets) {
//////////////////////////////////////////////
// tableOfOrders
var tableOfOrders = new Table({
chars: {
'top': '',
'top-mid': '',
'top-left': '',
'top-right': '',
'bottom': '',
'bottom-mid': '',
'bottom-left': '',
'bottom-right': '',
'left': '',
'left-mid': '',
'mid': '',
'mid-mid': '',
'right': '',
'right-mid': '',
'middle': ' '
},
style: {
'padding-left': 0,
'padding-right': 0
},
head: ['Order', 'Prox %', '24hrs %', 'Type', 'Rate', 'Amount', 'Value'],
colWidths: [13, 12, 10, 6, 15, 15, 15],
colAligns: ['left', 'right', 'right', 'right', 'right', 'right', 'right']
Expand Down Expand Up @@ -426,6 +470,27 @@ tableOfOrders.push(['', '', '', '', '', 'TOTAL', moneydollar(total)])
//

var tableOfCoins = new Table({
chars: {
'top': '',
'top-mid': '',
'top-left': '',
'top-right': '',
'bottom': '',
'bottom-mid': '',
'bottom-left': '',
'bottom-right': '',
'left': '',
'left-mid': '',
'mid': '',
'mid-mid': '',
'right': '',
'right-mid': '',
'middle': ' '
},
style: {
'padding-left': 0,
'padding-right': 0
},
head: ['Coin', 'Avail', 'Hold', 'Total', 'Value USD', 'Value BTC'],
colWidths: [10, 18, 18, 18, 15, 15],
colAligns: ['left', 'right', 'right', 'right', 'right', 'right']
Expand Down

0 comments on commit ec7293d

Please sign in to comment.