Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
54fdfad
Available supply = total supply
kpogromskiy Apr 8, 2021
a2aeee8
Use native vlx circulating supply
kpogromskiy Apr 25, 2021
12906fd
Show debug info on error
kpogromskiy Apr 25, 2021
2516286
Fix explorer url
kpogromskiy Apr 25, 2021
041a39e
Gracefull fallback on service error
kpogromskiy Apr 25, 2021
c7b52f6
Add ltc, eth, gbx to ticker
kpogromskiy May 14, 2021
81c6249
Change ticker format
kpogromskiy May 14, 2021
0fff978
Update cmc limit
kpogromskiy May 14, 2021
b618d02
Coinmarketcap limit update
kpogromskiy Aug 6, 2021
392dcfd
add auto build
otani88 Aug 6, 2021
befe061
Do not update bitcoin price if CMC request failed
kpogromskiy Aug 6, 2021
f320e46
Merge branch 'master' of github.com:velas/ticker
kpogromskiy Aug 6, 2021
adcc436
Add busd, usdc, huobi and binance coin
kpogromskiy Aug 31, 2021
a848234
Add Solana coin
kpogromskiy Sep 6, 2021
f26c8ab
Exit on timeout
kpogromskiy Dec 21, 2021
3a35084
Get velas rpc url from the env var
kpogromskiy Dec 23, 2021
a5695d3
Use different cycle algorithm
kpogromskiy Feb 10, 2022
ac6c436
Dont exit on old data
kpogromskiy May 12, 2022
47cd205
Log query data
kpogromskiy May 12, 2022
6ab1d3c
Use timeout to avoid hang
kpogromskiy Jun 15, 2022
e275274
Add btc_usd
kpogromskiy Jun 27, 2022
af6c13e
Use cmc api
kpogromskiy Jul 19, 2022
d00c82c
Add REFRESH_PERIOD
kpogromskiy Jul 19, 2022
af772bb
Fix REFRESH_PERIOD env variable usage
kpogromskiy Jul 19, 2022
0214f4d
Create README.md
kpogromskiy Oct 12, 2022
015f9fc
update ci
jjincer Oct 12, 2022
570668d
update ci
jjincer Oct 12, 2022
31f5700
Add 24h diff query param
kpogromskiy Nov 7, 2022
f02ca01
Fix deps
kpogromskiy Nov 7, 2022
177abd7
Add prices
kpogromskiy Apr 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build
on:
workflow_dispatch:
push:
branches: [main]

env:
APP_REPO: velas-ticker

jobs:
docker-build:
name: Build and push
runs-on: testnet-services
outputs:
repository: ${{ steps.build.outputs.repository }}
image_tag: ${{ steps.build.outputs.image_tag }}
steps:
- uses: actions/checkout@v2
- name: Build, tag, and push image
id: build
env:
REGISTRY: ${{ secrets.REGISTRY_HOST }}/velas
REPOSITORY: ${{ env.APP_REPO }}
IMAGE_TAG: ${{github.sha}}
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG --no-cache .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:latest

ENV HTTP_PORT 5000
ENV EXPLORER_URL http://127.0.0.1:4000/api
ENV CMC_LIMIT 300
ENV CMC_LIMIT 2500
ENV DEBUG false

WORKDIR /usr/src/app
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ticker

Serve common cryptocurrency prices
Loading