Giter VIP home page Giter VIP logo

ms2txt's People

Contributors

themech 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ms2txt's Issues

txt2ms

Please tell me how to do the reverse operation: make F1.DAT from csv? Thanks in advance!

Different format for symbol?

Ran into an issue where some symbols cannot be processed, throwing this error:

Traceback (most recent call last):
  File "/Users/kennethlimcp/Desktop/read-ms/ms2txt/metastock/files.py", line 23, in dump
    self.load_columns()
  File "/Users/kennethlimcp/Desktop/read-ms/ms2txt/metastock/files.py", line 46, in load_columns
    assert(len(lines) == self.stock.fields)
AssertionError
Processing FTBM (fileNo 2)
('Error while converting symbol', u'FTBM')

Dumping the info gives: (8, 7, ['"DATE",0,0', '"OPEN",5,5', '"HIGH",5,5', '"LOW",5,5', '"CLOSE",5,5', '"VOL",0,0', '"OI",0,0', '\x1a'])

It seems like there is an extra column with data '\x1a' that is causing the length assertion.

Any idea what that might be?

TypeError: a bytes-like object is required, not 'str'

I got this error when I try to use it

Traceback (most recent call last):
File "ms2txt/ms2txt.py", line 49, in
main()
File "ms2txt/ms2txt.py", line 40, in main
em_file = MSEMasterFile('EMASTER', options.precision)
File "/Users/aomranj/Downloads/Daily-MEC_Saudi_All-21_03_2019/ms2txt/metastock/files.py", line 259, in init
self.stocks.append(self._read_file_info(file_handle))
File "/Users/aomranj/Downloads/Daily-MEC_Saudi_All-21_03_2019/ms2txt/metastock/files.py", line 230, in _read_file_info
dfi.stock_symbol = file_handle.read(14).strip('\x00')
TypeError: a bytes-like object is required, not 'str'

how to use your classes correctly?

I can't understand what data to pass and to which class. Can you please show us a live example? It's hard to know when you first see it. Although, I understand that we are passing data to the metastockfiles class, but which ones exactly? What is 'encoding' in parameters of metastockfiles class?

ascii codec not working

the ascii codec isn't working, I believe the problem would be either from my terminal or from data itself, maybe it has some arabic characters. Any solutions?

Error while reading the stock name. Did you specify the correct encoding?
Current encoding: ascii, error message: 'ascii' codec can't decode byte 0xc7 in position 0: ordinal not in range(128)

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.