Coder Social home page Coder Social logo

KeyError about pytse HOT 7 CLOSED

miladj avatar miladj commented on August 24, 2024
KeyError

from pytse.

Comments (7)

ebrahimi1989 avatar ebrahimi1989 commented on August 24, 2024 1

ممنون

from pytse.

miladj avatar miladj commented on August 24, 2024 1

البته اینجوری هم میتونید چک کنید ببینید نماد هست یا نه

    symbolIsin = "IRO1MKBT0001"
    if symbolIsin in symbols:
        symbol = symbols[symbolIsin ]
        print(symbol)

from pytse.

h4mid007 avatar h4mid007 commented on August 24, 2024

بیشتر توضیح بدین، مثلا کدوم نماد؟

from pytse.

ebrahimi1989 avatar ebrahimi1989 commented on August 24, 2024

لیستی از نمادهارو که به عنوان ورودی بهش میدم روی بعضی از نمادها ارر میده. اون نمادهارو توی سایت تی اس ای سرچ کردم دیدم که اون نمادها ممنوع-متوقف هستش
شما الان میتونی با همین نمونه کدی که گذاشتی نماد خمحرکه رو تست کنی همین ارر رو بهت میده

from pytse.

h4mid007 avatar h4mid007 commented on August 24, 2024

آره خب، این پکیج اطلاعات رو از بخش دیده بان بازار میگیره و هر نمادی که توی دیده بان بازار نباشه، اینجا نشون نمیده.

from pytse.

ebrahimi1989 avatar ebrahimi1989 commented on August 24, 2024

چه شرطی میشه گذاشت که وقتی نیست ارر نده؟

from pytse.

h4mid007 avatar h4mid007 commented on August 24, 2024

نمیدونم کدتون چطوره، ولی میتونید از try و except استفاده کنید:

try:
    code
except:
    pass

from pytse.

Related Issues (15)

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.