Giter Site home page Giter Site logo

markets's Introduction

markets

ScreenShot Fig. 1. Running scripts: binance.sh, bitfinex.sh, binfo.sh, bitstamp.sh, cgk.sh, cmc.sh, etc; check 'pricesroll.sh'.


SUMMARY

This is a repo related to crypto, bank currency and stock markets.

Run the script with '-h' for a help page. Check below for script descriptions, download and basic instructions to run them.

These bash scripts mostly need 'curl'. Some of them will work if you have got 'wget' instead, but not all of them. Other important packages are 'jq' and 'websocat' for some scripts.


SUMÁRIO

Este repo é relacionado com mercados de cripto, de moedas de banco centrais e ações. Rode os scripts com '-h' para uma página de ajuda.

A maioria desses scripts de bash precisam do 'curl'. Alguns irão funcionar se você tiver somente o 'wget', mas não todos. Outros pacotes importantes para alguns scripts são 'jq' e 'websocat'.


INDEX / ÍNDICE

alpha.sh -- Stocks and currency rates from <alphaavantage.co>, most popular yahoo finance api alternative; get your free API key.

bakkt.sh -- Price and contract/volume tickers from bakkt public api.

binance.sh -- Binance public API, crypto converter, prices, book depth, coin ticker.

binfo.sh -- Blockchain explorer for bitcoin; uses <blockchain.info> and <blockchair.com> public apis; notification on new block found.

bitstamp.sh -- Bitstamp exchange public api for live trade prices/info.

bitfinex.sh -- Bitfinex exchange public api for live trade prices.

brasilbtc.sh -- Fetches bitcoin rates from brazilian exchanges public apis. Puxa cotações de bitcoin de agências de câmbio brasileiras de apis públicas;

*cgk.sh -- <Coinggecko.com> public api, convert one crypto, bank/fiat or metal currency into any another, market ticker, cryptocurrency ticker. This is my favorite everyday-use script for all-currency rates!

clay.sh -- <Currencylayer.com> free api key, central bank currency, precious metal and cryptocurrency converter.

cmc.sh -- <Coinmarketcap.com> convert any amount of one crypto, bank/fiat currency or metal into any another, requires a free api key.

erates.sh -- <Exchangeratesapi.io> public api, currency converter (same API as Alexander Epstein's Bash-Snippets/currency).

foxbit.sh -- FoxBit exchange public API rates. Acesso ao api público da Foxbit para cotações.

hgbrasil.sh -- Bovespa and tax rates. Cotações de ações da Bovespa e índices e taxas (CDI e SELIC) do api da hg brasil.

keysdemo -- Some api keys for demo purposes, source this file from your shell to load keys and use them with these scripts. algumas chaves de api para demonstração, faça um source deste arquivo a partir da sua shell para carregar as chaves e usá-las com os scripts.

myc.sh -- <Mycurrency.net> public api, central bank currency rate converter.

metais.sh -- script to retrieve dollar and preicous metals prices from multiple apis, requires other scritps from this repo.

metals.sh -- <metals-api.com> free private api, precious metals and central bank currency rate converter.

*mkt_funct -- shell functions (bash and z-shell) to get some market data from public apis. Google Finance and Yahoo! Finance hacks.. these functions need improvement. source from this file to make them available in your shell.

novad.sh -- puxa dados das apis públicas da NovaDax brasileira. fetch public api data from NovaDax brazilian enchange.

openx.sh -- <Openexchangerates.org> free api key, central bank currencies and precious metals converter.

ourominas.sh -- Ourominas (precious metals exchange) rates public api. Pega taxas da api pública da Ouro Minas.

parmetal.sh -- Parmetal (precious metals exchange) rates public api. Pega taxas da api pública da Parmetal.

pricesroll.sh -- script to open and arrange terminal windows with these market scripts on X.

stocks.sh -- <Financialmodelingprep.com> public api latest and historical stock and major index rates.

uol.sh -- Fetches rates from uol service provider public api. Puxa dados de páginas da api pública do uol economia.

whalealert.sh -- free api key, latest whale transactions from <whale-alert.io>.

yahooscrape.sh -- scrape some yahoo! finance tickers.

For a large list of Yahoo! Finance symbols, check: https://github.com/mountaineerbr/extra/tree/master/yahooFinanceSymbols


API KEYS / CHAVES DE API

Please create free API keys to use with these scripts.

Por favor, crie chaves de API grátis para usar com esses scripts.


ALSO CHECK / TAMBÉM VEJA

bcalc.sh -- A bash calculator wrapper that keeps a record of results

https://github.com/mountaineerbr/scripts/blob/master/bcalc.sh

Alexander Epstein's 'currency_bash-snipet.sh'; uses the same API as 'erates.sh'

https://github.com/alexanderepstein

MiguelMota's 'Cointop' for crypto currency tickers

https://github.com/miguelmota/cointop

8go's 'CoinBash.sh' for CoinMarketCap simple tickers (a little outdated)

https://github.com/8go/coinbash

Brandleesee's 'Mop: track stocks the hacker way'

https://github.com/mop-tracker/mop


IMPORTANT / IMPORTANTE

None of these scripts are supposed to be used under truly professional constraints. Do your own research!

Nenhum desses scripts deve ser usado em meio profissional sem análise prévia. Faça sua própria pesquisa!


BASIC INSTRUCTIONS

On Ubuntu 19.04, you can install curl, jq and lolcat packages easily from the official repos. The websocat package may be a little more complicated..

To download a script, view it on Github. Then, right-click on the 'Raw' button and choose 'Save Link As ...' option. Once downloaded (eg ~/Downloads/binance.sh), you will need to mark the script as executable. In GNOME, right-click on the file > Properties > Permissions and check the 'Allow executing file as programme' box, or

$ chmod +x ~/Downloads/binance.sh

Then cd to the folder where the script is located.

$ cd ~/Downloads

To execute it, be sure to add './' before the script name:

$ ./binance.sh

$ bash binance.sh

Alternatively, you can clone this entire repo.

$ cd Downloads

$ git clone https://github.com/mountaineerbr/markets.git

$ chmod +x ~/Downloads/markets/*.sh

You can use bash aliases to individual scripts or place them under your PATH.


INSTRUÇÕES BÁSICAS

No Ubuntu 19.04, pode-se instalar os pacotes curl, jq e lolcat facilmente dos repos oficiais. Já o pacote websocat pode ser um pouco mais complicado..

Para fazer o download de um script, abra-o/visualize-o no Github e depois clique com o botão direito do mouse em cima do botão 'Raw' e escolha a opção 'Salvar Link Como...'. Depois de feito o download (por exemplo, em ~/Downloads/binance.sh), será necessário marcar o script como executável. No GNOME, clicar com o botão direito em cima do arquivo > Propriedades > Permissões e selecionar a caixa 'Permitir execução do arquivo como programa', ou

$ chmod +x ~/Downloads/binance.sh

Então, caminhe até a pasta onde script se encontra.

$ cd ~/Downloads

Para executá-lo, não se esqueça de adicionar './' antes do nome do script:

$ ./binance.sh

$ bash binance.sh

Alternativeamente, você pode clonar este repo inteiro.

$ cd Downloads

$ git clone https://github.com/mountaineerbr/markets.git

$ chmod +x ~/Downloads/markets/*.sh

Você pode fazer bash aliases individuais para os scripts ou colocar os scripts sob seu PATH.


If useful, consider giving me a nickle! =)

Se foi útil, considere me lançar um trocado!

bc1qlxm5dfjl58whg6tvtszg5pfna9mn2cr2nulnjr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.