Skip to content

Commit

Permalink
Merge pull request #169 from ripcurlx/add-blockchain-instant-support
Browse files Browse the repository at this point in the history
Add support for BLOCK_CHAINS and BLOCK_CHAINS_INSTANT
  • Loading branch information
Steve Jain authored Apr 17, 2019
2 parents a612b47 + c75f146 commit d2665b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/markets.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ function getTrades( pair ) {
$( '<tr>' ).append(
$( '<td>' ).html( tradeDate.format( dateFormat ) ),
$( '<td>' ).text( val.direction + ' ' + buildTicker( val.market ) ),
$( '<td>' ).text( roundToSigFigs( val.price ) + ( val.payment_method === 'BLOCK_CHAINS' ? ' BTC' : ' ' + buildTicker( val.market ) ) ),
$( '<td>' ).text( ( val.payment_method === 'BLOCK_CHAINS' ? roundToSigFigs( val.volume ) : roundToSigFigs( val.amount ) ) ),
$( '<td>' ).text( ( val.payment_method === 'BLOCK_CHAINS' ? roundToSigFigs( val.amount ) : roundToSigFigs( val.volume ) ) + ' ' + buildTicker( val.market ) )
$( '<td>' ).text( roundToSigFigs( val.price ) + ( val.payment_method.startsWith('BLOCK_CHAINS') ? ' BTC' : ' ' + buildTicker( val.market ) ) ),
$( '<td>' ).text( ( val.payment_method.startsWith('BLOCK_CHAINS') ? roundToSigFigs( val.volume ) : roundToSigFigs( val.amount ) ) ),
$( '<td>' ).text( ( val.payment_method.startsWith('BLOCK_CHAINS') ? roundToSigFigs( val.amount ) : roundToSigFigs( val.volume ) ) + ' ' + buildTicker( val.market ) )

).appendTo( '#trade-history-body' );

Expand Down Expand Up @@ -155,8 +155,8 @@ function getTrades( pair ) {
$( '<td>' ).text( tradeDate.format( dateFormat ) ),
$( '<td>' ).text( val.direction + ' ' + actionTicker ),
$( '<td>' ).text( roundToSigFigs( parseFloat( val.price ) ) ),
$( '<td>' ).text( ( val.payment_method === 'BLOCK_CHAINS' ? roundToSigFigs( val.volume ) : roundToSigFigs( val.amount ) ) ),
$( '<td>' ).text( ( val.payment_method === 'BLOCK_CHAINS' ? roundToSigFigs( val.amount ) : roundToSigFigs( val.volume ) ) )
$( '<td>' ).text( ( val.payment_method.startsWith('BLOCK_CHAINS') ? roundToSigFigs( val.volume ) : roundToSigFigs( val.amount ) ) ),
$( '<td>' ).text( ( val.payment_method.startsWith('BLOCK_CHAINS') ? roundToSigFigs( val.amount ) : roundToSigFigs( val.volume ) ) )
).appendTo('#trade-history-body' );

});
Expand Down

0 comments on commit d2665b1

Please sign in to comment.