banner



How To Add Stock Bot In Discord

discord-stock-ticker

Add together live stock & crypto prices to your discord sidebar.

View the Projection on GitHub rssnyder/discord-stock-ticker

discord-stock-ticker

Live stock and crypto tickers for your discord server.

With these bots you tin rails prices of…

  • Coins and Tokens on CoinGecko
  • Marketcaps of Coins and Tokens on CoinGecko
  • Stocks on Yahoo Finance
  • Tokens on Pancakeswap
  • Tokens on Dexlab
  • Tokens on 1Inch
  • NFT Collections on OpenSea, Solanart, and Solart
  • Gas on Ethereum, Binance, and Polygon Bondage
  • Number of holders of a token on Ethereum and Binance Chains

🍾 100 public tickers with over 15k installs across 3k discord servers!

đź› ️ Employ theis project to host your own tickers, or .pay for custom tickers to be fabricated.

Publish MIT License

GitHub last commit GitHub stars GitHub watchers

Contents

  • discord-stock-ticker
    • Contents
    • Preview
    • Join the discord server
    • Support this projection
    • Add free tickers to your servers
      • Stocks
      • Crypto
      • Gas Prices
    • Premium
    • Self-Hosting
      • Setting options
      • Systemd (linux)
    • Managing bots
    • Stock and Crypto Toll Tickers
      • Bot Configuration (stock)
      • Bot Configuration (crypto)
    • Stock and Crypto Price Tickerboards
      • Bot Configuration (stock)
      • Bot Configuration (crypto)
    • Crypto Market Cap
      • Bot Configuration
    • Ethereum, BSC, and Polygon Gas Prices
      • Bot Configuration
    • Ethereum, BSC, or Polygon Token Holders
      • Bot Configuration
    • ETH/BSC/MATIC Token Price
      • Bot Configuration
    • OpenSea/Solanart NFT Drove Floor Price
      • Bot Configuration
    • Roles for colors
    • Kubernetes
    • Louie

Preview

image TICKERS BOARDS image HOLDERS FLOOR

Join the discord server

Discord Chat

Support this project

Buy Me a Coffee

DigitalOcean Referral Badge

Love these bots? Yous can back up this project by subscribing to the premium version, buying me a coffee, using my digital ocean referral link, or hiring me to write or host your discord bot!

Add free tickers to your servers

Stocks

bb
amc
nok
aapl
amzn
goog
[^gspc](https://discord.com/oauth2/authorize?client_id=808431853363134484&permissions=0&telescopic=bot)
[^dji](https://discord.com/oauth2/authorize?client_id=808432655746072596&permissions=0&scope=bot)
[^ixic](https://discord.com/oauth2/authorize?client_id=808432811644026921&permissions=0&telescopic=bot)
tsla
dkng
spy
amd
nio
gc=f
si=f
cl=f
pltr
pypl
sndl
rty=f
[^vix](https://discord.com/oauth2/authorize?client_id=819576744176386048&permissions=0&scope=bot)
arkk
msft
nflx
gme
dis
es=f
nq=f
ym=f
nvda
fb
btc
coin
ndaq
qqq

Crypto

bitcoin
ethereum
bitcoin-cash
dogecoin
monero
litecoin
ripple
polkadot
cardano
chainlink
stellar
iota
reef-finance
algorand
tezos
ethereum-classic
ravencoin
binancecoin
ecomi
aave
uniswap
bittorrent-2
tron
vechain
illuvium
cosmos
zilliqa
matic-network
basic-attention-token
shiba-inu
pancakeswap-token
solana
raydium
safemoon
ftx-token
enjincoin
decentraland
fantom
coti
hedera-hashgraph
sushi
kusama
eos
terra-luna
chia
theta-token
tether
shine-dear-potion
axie-infinity
harmony
cryptoblades
my-defi-pet
mist
weth
plant-vs-undead-token
cryptozoon
binance-usd
splinterlands
wax
coinary-token
barrage-2
cryptocars
binamon
wanaka-farm

Gas Prices

Ethereum Invite Link Binance Smart Chain Invite Link Polygon Invite Link

Premium

If you are interested in a ticker that isnt on this list, you can host your own using the code here or pay to have them fabricated for you lot.

Toll per bot (paid monthly): $1

Price per bot (paid yearly): $10

If you are interested please see the contact info on my github page and send me a messgae via your platform of selection (discord perferred). For a alive demo, bring together the support discord linked at the top or bottom of this folio.

Cocky-Hosting

Click hither to sentinel a quick video tutorial on how to self-host these bots on linux. There is besides an in depth written format gist here. If you are familar with ansible, I have a playbook here.

Pull downwards the latest release for your OS here. Extract. Run.

              wget https://github.com/rssnyder/discord-stock-ticker/releases/download/v2.0.0/discord-stock-ticker-v3.iii.0-linux-amd64.tar.gz                tar                zxf discord-stock-ticker-v3.3.0-linux-amd64.tar.gz  ./discord-stock-ticker                          

Setting options

At that place are options you can set for the service using flags:

                              -address                =                "localhost:8080": address:port to                demark                http server to.                -cache                =                false:                enable                cache                for                coingecko                -db                =                "": file to store tickers                in                -frequency                =0:                prepare                frequency                for                all tickers                -logLevel                =0: defines the log level.                0                =production builds.                1                =dev builds.                -redisAddress                =                "localhost:6379": accost:port                for                redis server.                -redisDB                =0: redis db to use                -redisPassword                =                "": redis password                          

Systemd (linux)

The script hither (ran as root) will download and install a discord-stock-ticker service on your linux car with an API avalible on port 8080 to manage bots.

              wget https://github.com/rssnyder/discord-stock-ticker/releases/download/v3.3.0/discord-stock-ticker-v3.3.0-linux-amd64.tar.gz                tar                zxf discord-stock-ticker-v3.three.0-linux-amd64.tar.gz                mkdir                -p                /etc/discord-stock-ticker                mv                discord-stock-ticker /etc/discord-stock-ticker/  wget https://raw.githubusercontent.com/rssnyder/discord-stock-ticker/master/discord-stock-ticker.service                mv                discord-stock-ticker.service /etc/systemd/system/  systemctl daemon-reload  systemctl start discord-stock-ticker.service                          

If you need to brand modifications to the setting of the service, only edit the /etc/systemd/arrangement/discord-stock-ticker.service file on the line with ExecStart=. An example walkthrough can be found in this issue. Exist sure to run systemctl daemon-reload to pick up and changes.

At present that yous accept the service running, you lot tin add together bots using the API exposed on the addres and port that the service runs on (this accost is shown when yous start the service).

Managing bots

All bots are controlled via an API interface and follow the same api template for direction:

Available methods:

              Become     # show all currently running bots and their configuration POST    # create a new bot PATCH   # restart a running bot DELETE  # delete a running bot                          

If you are new to using an API to manage things, there are several means to brand API calls:

ane) Curlicue. This is a command bachelor on almost all Linux distros. Replace annihilation between < and > with the appropriate information.

The generic format for a curl API telephone call:

              curl                -Ten                <method>                -H                "Content-type: application/json"                -d                <inline json or from file> <hostname                >:<port>/<bot                blazon                >                          

Go is the default method for curl, so you may omit the method. Also since you're just retrieving your bots, y'all can omit the -d flag too.

Get a listing of all your bots:

              curl localhost:8080/<bot                type                >                          

Create a new bot: (In this case, the bot configuration is located in a file 'btc.json', in the folder bots/crypo)

              ringlet                -X                Post                -H                "Content-type: application/json"                -d                @bots/crypto/btc.json localhost:8080/ticker                          

Instructions for restarting running bots and deleting bots are forthcoming.

ii) Powershell:

                              $Body                =                @{                name                =                "bitcoin"                crypto                =                $true                discord_bot_token                =                "xxxxxxxxxxxxxxxxxxxxxxxxx"                }                $Parameters                =                @{                Method                =                "POST"                Uri                =                "127.0.0.1:8080/ticker"                Body                =                (                $Body                | ConvertTo-Json)                ContentType                =                "application/json"                }                Invoke-RestMethod @Parameters                          

iii) postman

Stock and Crypto Price Tickers

bot type: ticker

Tracks stock or crypto prices. Uses Yahoo for stock or CoinGecko for crypto.

Bot Configuration (stock)

                              {                                                "ticker"                :                                                "pfg"                ,                                                #                                                string:                                                symbol                                                for                                                the                                                stock                                                from                                                yahoo                                                finance                                                "proper name"                :                                                "2) PFG"                ,                                                #                                                string/OPTIONAL:                                                overwrites                                                display                                                name                                                of                                                bot                                                "color"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                requires                                                nickname                                                "decorator"                :                                                "@"                ,                                                #                                                string/OPTIONAL:                                                what                                                to                                                show                                                instead                                                of                                                arrows                                                "currency"                :                                                "aud"                ,                                                #                                                string/OPTIONAL:                                                alternative                                                curreny                                                "activity"                :                                                "Hi;Its;Me"                ,                                                #                                                string/OPTIONAL:                                                listing                                                of                                                strings                                                to                                                testify                                                in                                                activity                                                section                                                "nickname"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                display                                                information                                                in                                                nickname                                                vs                                                action                                                "frequency"                :                                                10                ,                                                #                                                int/OPTIONAL:                                                seconds                                                between                                                refresh                                                "twelve_data_key"                :                                                "thirty"                ,                                                #                                                string/OPTIONAL:                                                use                                                twelve                                                data                                                as                                                source                ,                                                pass                                                in                                                api                                                fundamental                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                string:                                                dicord                                                bot                                                token                                                }                                                          

Bot Configuration (crypto)

                              {                                                "name"                :                                                "bitcoin"                ,                                                #                                                string:                                                name                                                of                                                the                                                crypto                                                from                                                coingecko                                                "crypto"                :                                                true                ,                                                #                                                bool:                                                always                                                truthful                                                for                                                crypto                                                "ticker"                :                                                "one) BTC"                ,                                                #                                                string/OPTIONAL:                                                overwrites                                                display                                                name                                                of                                                bot                                                "colour"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                requires                                                nickname                                                "decorator"                :                                                "@"                ,                                                #                                                string/OPTIONAL:                                                what                                                to                                                prove                                                instead                                                of                                                arrows                                                "currency"                :                                                "aud"                ,                                                #                                                string/OPTIONAL:                                                culling                                                curreny                                                "currency_symbol"                :                                                "AUD"                ,                                                #                                                string/OPTIONAL:                                                alternative                                                curreny                                                symbol                                                "pair"                :                                                "binancecoin"                ,                                                #                                                string/OPTIONAL:                                                pair                                                the                                                coin                                                with                                                another                                                coin                ,                                                replaces                                                activity                                                section                                                "pair_flip"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                show                                                <pair>/<coin>                                                rather                                                than                                                <coin>/<pair>                                                "activity"                :                                                "Hi;Its;Me"                ,                                                #                                                string/OPTIONAL:                                                list                                                of                                                strings                                                to                                                show                                                in                                                activeness                                                section                                                "decimals"                :                                                3                ,                                                #                                                int/OPTIONAL:                                                gear up                                                number                                                of                                                decimal                                                places                                                "nickname"                :                                                truthful                ,                                                #                                                bool/OPTIONAL:                                                display                                                information                                                in                                                nickname                                                vs                                                activity                                                "frequency"                :                                                10                ,                                                #                                                int/OPTIONAL:                                                seconds                                                between                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                string:                                                dicord                                                bot                                                token                                                }                                                          

Stock and Crypto Price Tickerboards

bot type: tickerboard

Tracks multiple stock or crypto prices. Uses Yahoo for stock or CoinGecko for crypto.

Bot Configuration (stock)

                              {                                                "proper name"                :                                                "Stocks"                ,                                                #                                                string:                                                name                                                of                                                your                                                board                                                "items"                :                                                [                "PFG"                ,                                                "GME"                ,                                                "AMC"                ],                                                #                                                list                                                of                                                strings:                                                symbols                                                from                                                yahoo                                                finance                                                to                                                rotate                                                through                                                "header"                :                                                "1. "                ,                                                #                                                string/OPTIONAL:                                                adds                                                a                                                header                                                to                                                the                                                nickname                                                to                                                help                                                sort                                                bots                                                "color"                :                                                truthful                ,                                                #                                                bool/OPTIONAL:                                                requires                                                nickname                                                "arrows"                :                                                truthful                ,                                                #                                                bool/OPTIONAL:                                                show                                                arrows                                                in                                                ticker                                                names                                                "nickname"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                display                                                information                                                in                                                nickname                                                vs                                                activeness                                                "frequency"                :                                                10                ,                                                #                                                int/OPTIONAL:                                                seconds                                                between                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                string:                                                dicord                                                bot                                                token                                                }                                                          

Bot Configuration (crypto)

                              {                                                "proper name"                :                                                "Cryptos"                ,                                                #                                                string:                                                name                                                of                                                your                                                board                                                "crypto"                :                                                true                ,                                                #                                                bool:                                                e'er                                                truthful                                                for                                                crypto                                                "items"                :                                                [                "bitcoin"                ,                                                "ethereum"                ,                                                "dogecoin"                ],                                                #                                                list                                                of                                                strings:                                                names                                                from                                                coingecko                                                to                                                rotate                                                through                                                "header"                :                                                "ii. "                ,                                                #                                                cord/OPTIONAL:                                                adds                                                a                                                header                                                to                                                the                                                nickname                                                to                                                assistance                                                sort                                                bots                                                "colour"                :                                                truthful                ,                                                #                                                bool/OPTIONAL:                                                requires                                                nickname                                                "arrows"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                testify                                                arrows                                                in                                                ticker                                                names                                                "nickname"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                display                                                information                                                in                                                nickname                                                vs                                                activity                                                "frequency"                :                                                x                ,                                                #                                                int/OPTIONAL:                                                seconds                                                between                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                string:                                                dicord                                                bot                                                token                                                }                                                          

Crypto Market Cap

bot blazon: marketcap

Tracks the marketcap of a money. Uses CoinGecko for data.

Bot Configuration

                              {                                                "name"                :                                                "bitcoin"                ,                                                #                                                string:                                                name                                                of                                                the                                                crypto                                                from                                                coingecko                                                "ticker"                :                                                "1) BTC"                ,                                                #                                                string/OPTIONAL:                                                overwrites                                                brandish                                                name                                                of                                                bot                                                "color"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                requires                                                nickname                                                "decorator"                :                                                "@"                ,                                                #                                                string/OPTIONAL:                                                what                                                to                                                show                                                instead                                                of                                                arrows                                                "currency"                :                                                "aud"                ,                                                #                                                string/OPTIONAL:                                                alternative                                                curreny                                                "currency_symbol"                :                                                "AUD"                ,                                                #                                                string/OPTIONAL:                                                alternative                                                curreny                                                symbol                                                "activeness"                :                                                "Hello;Its;Me"                ,                                                #                                                cord/OPTIONAL:                                                listing                                                of                                                strings                                                to                                                prove                                                in                                                action                                                section                                                "decimals"                :                                                3                ,                                                #                                                int/OPTIONAL:                                                set up                                                number                                                of                                                decimal                                                places                                                "nickname"                :                                                truthful                ,                                                #                                                bool/OPTIONAL:                                                brandish                                                data                                                in                                                nickname                                                vs                                                activity                                                "frequency"                :                                                ten                ,                                                #                                                int/OPTIONAL:                                                seconds                                                betwixt                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                cord:                                                dicord                                                bot                                                token                                                }                                                          

Ethereum, BSC, and Polygon Gas Prices

bot type: gas

image

Track the gas toll on Ethereum, Binance, or Pol;ygon bondage. Uses EthGasWatch for Ethereum or Zapper for others.

Bot Configuration

                              {                                                "network"                :                                                "ethereum"                ,                                                #                                                string:                                                1                                                of:                                                ethereum                ,                                                binance-smart-chain                ,                                                or                                                polygon                                                "nickname"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                brandish                                                information                                                in                                                nickname                                                vs                                                activeness                                                "frequency"                :                                                ten                ,                                                #                                                int/OPTIONAL:                                                seconds                                                betwixt                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                cord:                                                dicord                                                bot                                                token                                                }                                                          

Ethereum, BSC, or Polygon Token Holders

bot type: holders

HOLDERS

Track the number of token holders on Ethereum or Binance chains. Uses etherscan or bscscan for data.

Bot Configuration

                              {                                                "network"                :                                                "ethereum"                ,                                                #                                                string:                                                one                                                of:                                                ethereum                ,                                                binance-smart-chain                ,                                                or                                                polygon                                                "address"                :                                                "0x00000000000000000000000000"                ,                                                #                                                string:                                                address                                                of                                                contract                                                for                                                token                                                "activity"                :                                                "ethereum"                ,                                                #                                                cord:                                                text                                                to                                                show                                                in                                                activity                                                section                                                of                                                the                                                bot                                                "nickname"                :                                                truthful                ,                                                #                                                bool/OPTIONAL:                                                brandish                                                information                                                in                                                nickname                                                vs                                                activity                                                "frequency"                :                                                10                ,                                                #                                                int/OPTIONAL:                                                seconds                                                between                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                string:                                                dicord                                                bot                                                token                                                }                                                          

ETH/BSC/MATIC Token Price

bot type: token

Runway the price of a token on Ethereum, Binance, or Polygon chains. Uses 1inch by default, or pancakeswap/dexlab if specified.

Bot Configuration

                              {                                                "network"                :                                                "ethereum"                ,                                                #                                                cord:                                                network                                                of                                                token                ,                                                options                                                are                                                ethereum                ,                                                binance-smart-chain                ,                                                or                                                polygon                                                "proper noun"                :                                                "my token"                ,                                                #                                                string:                                                display                                                proper name                                                of                                                token                                                "contract"                :                                                "0x00000"                ,                                                #                                                string:                                                contract                                                address                                                of                                                token                                                "currency"                :                                                "0x00000"                ,                                                #                                                string/OPTIONAL:                                                contract                                                accost                                                of                                                token                                                to                                                toll                                                against                ,                                                default                                                is                                                USDC                                                "nickname"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                display                                                information                                                in                                                nickname                                                vs                                                activity                                                "color"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                requires                                                nickname                                                "decorator"                :                                                "@"                ,                                                #                                                string/OPTIONAL:                                                what                                                to                                                bear witness                                                instead                                                of                                                arrows                                                "activity"                :                                                "Howdy;Its;Me"                ,                                                #                                                cord/OPTIONAL:                                                list                                                of                                                strings                                                to                                                show                                                in                                                activeness                                                department                                                "source"                :                                                "pancakeswap"                ,                                                #                                                string/OPTIONAL:                                                if                                                the                                                token                                                is                                                a                                                BSC                                                token                ,                                                you                                                tin can                                                set                                                pancakeswap                                                here                                                to                                                use                                                it                                                vs                                                i                inch;                                                you                                                tin                                                likewise                                                set                                                dexlab                                                for                                                solana                                                tokens                                                "frequency"                :                                                10                ,                                                #                                                int/OPTIONAL:                                                seconds                                                between                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                string:                                                dicord                                                bot                                                token                                                }                                                          

OpenSea/Solanart NFT Collection Floor Price

bot type: floor

image

Track the flooring price of an NFT collection on OpenSea or Solanart.

Bot Configuration

                              {                                                "marketplace"                :                                                "opensea"                ,                                                #                                                cord:                                                one                                                of:                                                opensea                ,                                                solsea                                                or                                                solanart                                                "proper name"                :                                                "ethereum"                ,                                                #                                                string:                                                drove                                                name/id                                                from                                                source                                                "nickname"                :                                                true                ,                                                #                                                bool/OPTIONAL:                                                display                                                information                                                in                                                nickname                                                vs                                                activity                                                "frequency"                :                                                ten                ,                                                #                                                int/OPTIONAL:                                                seconds                                                between                                                refresh                                                "discord_bot_token"                :                                                "xxxxxxxxxxxxxxxxxxxxxxxx"                                                #                                                string:                                                dicord                                                bot                                                token                                                }                                                          

Roles for colors

To enable colour changing you volition demand to create iii roles.

The commencement role is the role the tickers will appear under. It can be named anything you want. Yous need to cheque the Display office members seperatly from other online members selection for this office, but exercise not assign a custom color for this role, get out information technology default.

So you need to make ii other roles. These roles need to be named exactly tickers-blood-red & tickers-dark-green. Exercise not check the Display role members seperatly from other online members option for these roles, but do assign colors to these roles, cerise and greenish (or whatsoever color you desire to represent gain/loss) respectively.

The concluding two roles tickers-green and tickers-cherry-red need to be beneath the first role in the office list in your server settings. You should so add all your ticker bots to the first part.

roles example

Kubernetes

Cheers to @jr0dd there is a captain chart for deploying to k8s clusters. His nautical chart can be plant here

You can also use a elementary deployment file:

                              apiVersion                :                apps/v1                kind                :                Deployment                metadata                :                creationTimestamp                :                zilch                labels                :                environment                :                public                name                :                ticker-cardano                spec                :                replicas                :                one                selector                :                matchLabels                :                environment                :                public                strategy                :                {}                template                :                metadata                :                creationTimestamp                :                null                labels                :                environment                :                public                spec                :                containers                :                -                env                :                -                name                :                CRYPTO_NAME                value                :                cardano                -                name                :                DISCORD_BOT_TOKEN                value                :                xxxxxxxxxxxxxxxxxxxxxx                -                name                :                FREQUENCY                value                :                "                ane"                -                proper name                :                SET_COLOR                value                :                "                ane"                -                name                :                SET_NICKNAME                value                :                "                1"                -                name                :                TICKER                value                :                ADA                -                name                :                TZ                value                :                America/Chicago                epitome                :                ghcr.io/rssnyder/discord-stock-ticker:one.8.1                name                :                ticker-cardano                resource                :                {}                restartPolicy                :                Ever                condition                :                {}                          

Louie

Since you have read this far, here is a picture of Louie at his favorite park:

PXL_20210424_185951005 PORTRAIT

How To Add Stock Bot In Discord,

Source: https://rssnyder.github.io/discord-stock-ticker/

Posted by: scottuporthe.blogspot.com

0 Response to "How To Add Stock Bot In Discord"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel