Git Product home page Git Product logo

gethfdata's Introduction

About me

I'm an associate professor of Finance at EA/UFRGS.

You can find more details about my work at my personal site.

Fell free to reach me at [email protected].

gethfdata's People

Contributors

guilhermebodin avatar msperlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gethfdata's Issues

Dados históricos

Olá Marcelo, vc tem os dados históricos de anos anteriores a 2019? Obrigado!

Aggregate the number of buys and sells

Hi Perlin, i has suggested a change to summarise in agg output for show the number of buys and sells quantity that a use to order flow analysis. I made this change in my code cloning you repo, but i have to compile every time that i will use this function, so a suggested to do natively by package. Sorry to not open a issue before, but i wanna know if you agree this change. Tks.

Erro de leitura dos arquivos

Quando eu tento rodar o exemplo do README, recebo a seguinte mensagem de erro:

Running ghfd_get_HF_Data for:
type.market = equity
type.data = trades
my.assets = PETR VALE
type.output = agg
agg.diff = 15 min
Reading ftp contents for equity(trades) (attempt = 1|10)
Found 154 files in ftp
First available date in ftp: 2019-11-01
Last available date in ftp: 2020-06-09
First date to download: 2020-06-01
Last date to download: 2020-06-09
Downloading ftp files/NEG_20200601.7z (1|7) Attempt 1
-> Reading filesError in read_tokens_(data, tokenizer, col_specs, col_names, locale_, :
embedded nul in string: '\0O\xe2\xfe\x870\xa7\x9e&\xbfk\xf72\xe3fd\xde('

Alguma ideia de como posso contornar isso?

agg.diff = '1 day'

-> Processing file - Found 3 lines for 1 selected tickersError in cut.default(unclass(x), unclass(breaks), labels = labels, right = right, :
'breaks' are not unique

agg.diff

Guys, i'm having a problem using the agg.diff for a day, it's not aggregating the data. It's taking to long?
Could some one help me out on this?

Suggestion: memorization

It would be a good idea to memoize some of the function calls, especially ghfd_get_ftp_contents(). One package that can do so with relatively little effort is R.cache.

Change in filenames ?

Pelo que deu a entender, isso aconteceu porque, aparentemente, a B3 mudou o método de compressão de zip para gz.

Acredito que modificando a linha 40 e 43 da função ghfd_get_ftp_contents para:

if (type.data == "trades") {
  pattern.files <- "NEG_(.*)"
}
else if (type.data == "orders") {
  pattern.files <- "OFER_(.*)"
}

Isso deixe de ser um problema.

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.