Giter VIP home page Giter VIP logo

tfc-functions's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

tfc-functions's Issues

Ranking

Lista ordenada de usuários com base em seu percentual de ganho absoluto do portfolio. atualizado diariamente

Reset account

Permite ao usuário reinicializar sua conta: saldo inicial, ordens, indicadores, etc.

Tournement

{Caso de Uso 02 - Participar de torneios}: O usuário pode competir com outros usuários através de torneios periódicos disponíveis na plataforma;

Image

User Daily History

Salvar diariamente um histórico com o valor do portfolio do usuário

Fetch intraday data by ticker

Intraday values

image

{
  "NASDAQ_AAPL": {
    "1D": [ // Dados de 15min apenas das últimas 24h
      {
        "datetime": "2021-09-16 15:59:00",
        "open": "148.73500",
        "high": "148.86000",
        "low": "148.73000",
        "close": "148.85001",
        "volume": "624277"
      }
    ],
    "1S": [ // Dados de 15min dos últimos 8 dias
      ...
    ],
    "6M": [ // Dados de 1day dos ultimos 6 meses
      ...
    ],
    "MAX": [ // Dados de 1day a partir jan de 2019
      ...
    ]
  }
}
  • cloud function: intraday
  • description: Fetch intraday values;
  • trigger: Cronjob Scheduler. 15 9-18 * * 1-5
  • database: Realtime
  • path: exchange_ticker | exp: nasdaq_aapl

Update stock fields like price, price_flutuation, and week

image

Fetch info function

image

{
  "symbol": "AAPL",
  "name": "Apple Inc",
  "exchange": "NASDAQ",
  "sector": "Technology",
  "industry": "Consumer Electronics",
  "employees": 154000,
  "website": "http://www.apple.com",
  "description": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories worldwide. It also sells various related services. In addition, the company offers iPhone, a line of smartphones; Mac, a line of personal computers; iPad, a line of multi-purpose tablets; AirPods Max, an over-ear wireless headphone; and wearables, home, and accessories comprising AirPods, Apple TV, Apple Watch, Beats products, HomePod, and iPod touch. Further, it provides AppleCare support services; cloud services store services; and operates various platforms, including the App Store that allow customers to discover and download applications and digital content, such as books, music, video, games, and podcasts. Additionally, the company offers various services, such as Apple Arcade, a game subscription service; Apple Music, which offers users a curated listening experience with on-demand radio stations; Apple News+, a subscription news and magazine service; Apple TV+, which offers exclusive original content; Apple Card, a co-branded credit card; and Apple Pay, a cashless payment service, as well as licenses its intellectual property. The company serves consumers, and small and mid-sized businesses; and the education, enterprise, and government markets. It distributes third-party applications for its products through the App Store. The company also sells its products through its retail and online stores, and direct sales force; and third-party cellular network carriers, wholesalers, retailers, and resellers. Apple Inc. was incorporated in 1977 and is headquartered in Cupertino, California.",
  "type": "Common Stock",
  "logo": "tradingfight.com/aapl.jpg",
  "CEO": "Mr. Timothy D. Cook",
  "address": "One Apple Park Way",
  "city": "Cupertino",
  "zip": "95014",
  "state": "CA",
  "country": "US",
  "phone": "408 996 1010",
  "price": 148,
  "price_flutuation": 0.75,
  "price_absolute_flutuation": 1,
  "week": [
  // EOD 1Week
  ]
}
  • cloud function: stock-eod
  • description: Get updated info about companies; Add new stocks; Compile EOD infos; get historical data for new ticker;
  • trigger: Cronjob Scheduler. 0 9 * * *
  • database: Firestore
  • path: companies/exchange_ticker | exp: companies/nasdaq_aapl

Setup new account

image

{
  "name": "Victor Hugo",
  "avatar": "url",
  "net": 1000.00,
  "portfolio_value": 30000.00,
  "last_consolidation": "19-11-2021"
}
  • cloud function: new-account

  • description: Initialize user document;

  • trigger: After a signup;

  • database: Firestore

  • path: users

  • create account

  • create initial portfolio

  • delete account

  • delete all assets

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency firebase-admin to v6.5.0
  • chore(deps): update dependency websocket-client to v1.8.0
  • chore(deps): update dependency pandas to v2
  • chore(deps): update dependency python-dotenv to v1
  • chore(deps): update dependency setuptools to v70
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pip_requirements
cloud-functions/budget-alert/requirements.txt
  • google-api-python-client ==2.65.0
cloud-functions/delete_account/requirements.txt
  • sentry-sdk ==1.10.1
  • firebase-admin ==6.0.1
cloud-functions/new_account/requirements.txt
  • sentry-sdk ==1.10.1
  • firebase-admin ==6.0.1
cloud-functions/new_order/requirements.txt
  • sentry-sdk ==1.10.1
  • firebase-admin ==6.0.1
cloud-functions/seeders/requirements.txt
  • yfinance ==0.1.85
  • sentry-sdk ==1.10.1
  • firebase-admin ==6.0.1
cloud-functions/stock_intraday/requirements.txt
  • yfinance ==0.1.85
  • sentry-sdk ==1.10.1
  • firebase-admin ==6.0.1
requirements.txt
  • twelvedata ==1.2.9
  • websocket-client ==1.4.2
  • python-decouple ==3.6
  • requests ==2.28.1
  • python-dotenv ==0.21.0
  • yfinance ==0.1.85
  • pandas ==1.5.1
  • setuptools ==65.5.1
  • google-cloud-firestore ==2.7.2
  • asgiref ==3.5.2

  • Check this box to trigger a request for Renovate to run again on this repository

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.