Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
LBRY Bot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Melroy van den Berg
LBRY Bot
Commits
7dbe9537
Commit
7dbe9537
authored
Sep 12, 2019
by
Melroy van den Berg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo volume is in dollars
parent
e22cb632
Pipeline
#1307
passed with stage
in 1 minute and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/telegram.js
src/telegram.js
+6
-6
No files found.
src/telegram.js
View file @
7dbe9537
...
...
@@ -325,9 +325,9 @@ Exchange rate 7 days avg: ${exchangeRate7d} BTC-LTC`
const
circulating
=
result
.
circulating_supply
.
toLocaleString
(
'
en
'
,
{
maximumFractionDigits
:
0
})
const
dollarPrice
=
quote
.
price
.
toLocaleString
(
'
en
'
,
{
maximumFractionDigits
:
DOLLAR_PRICE_FRACTION_DIGITS
})
const
dollarPriceLastUpdated
=
quote
.
last_updated
const
volume24h
=
parseFloat
(
quote
.
volume_24h
).
toLocaleString
(
'
en
'
,
{
m
aximumFractionDigits
:
5
})
const
volume7d
=
parseFloat
(
quote
.
volume_7d
).
toLocaleString
(
'
en
'
,
{
m
aximumFractionDigits
:
5
})
const
volume30d
=
parseFloat
(
quote
.
volume_30d
).
toLocaleString
(
'
en
'
,
{
m
aximumFractionDigits
:
5
})
const
volume24h
=
parseFloat
(
quote
.
volume_24h
).
toLocaleString
(
'
en
'
,
{
m
inimumFractionDigits
:
2
,
maximumFractionDigits
:
2
})
const
volume7d
=
parseFloat
(
quote
.
volume_7d
).
toLocaleString
(
'
en
'
,
{
m
inimumFractionDigits
:
2
,
maximumFractionDigits
:
2
})
const
volume30d
=
parseFloat
(
quote
.
volume_30d
).
toLocaleString
(
'
en
'
,
{
m
inimumFractionDigits
:
2
,
maximumFractionDigits
:
2
})
const
marketCap
=
parseFloat
(
quote
.
market_cap
).
toLocaleString
(
'
en
'
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
2
})
const
hourChangeIcon
=
(
Math
.
sign
(
quote
.
percent_change_1h
)
===
1
)
?
'
👍
'
:
'
👎
'
const
hour24ChangeIcon
=
(
Math
.
sign
(
quote
.
percent_change_24h
)
===
1
)
?
'
👍
'
:
'
👎
'
...
...
@@ -343,9 +343,9 @@ Price: $${dollarPrice}/LBC
Last updated dollar:
${
dollarPriceLastUpdated
}
Price: 1 LBC =
${
bitcoinPrice
}
BTC
Last updated BTC:
${
bitcoinPriceDateTime
}
Volume 24 hour avg:
$
{
volume24h
}
LBC
Volume 7 days avg:
$
{
volume7d
}
LBC
Volume 30 days avg:
$
{
volume30d
}
LBC
Volume 24 hour avg: $
${
volume24h
}
Volume 7 days avg: $
${
volume7d
}
Volume 30 days avg: $
${
volume30d
}
Market capital: $
${
marketCap
}
*% Change*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment