Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Why the pe_ratio are different by using the cusotmer fundamendal factor and by get_fundamenal()?

Hi,

In my test algo I use two different way to get the pe_ratio. One by using the customer fundamental factor and the other using get_fundamental() fnuction. Here are what I get and one can see they are somewhat different. What could be the reason?

By customer fundamental factor:
2016-06-01 before_trading_start:44 INFO
Sorted: pe
Equity(26740 [NRF]) 0.7685
Equity(46191 [EPE]) 0.8089
Equity(624 [ATW]) 1.6298
Equity(4664 [SM]) 2.2902
Equity(28051 [UAL]) 2.3334
Equity(9038 [RIG]) 2.3396
Equity(35162 [ARR]) 2.3832
Equity(15789 [DNR]) 2.6663
Equity(39495 [SDRL]) 2.7053
Equity(45971 [AAL]) 2.8588
Equity(5092 [MTG]) 2.9193
Equity(48073 [CRC]) 3.0096
Equity(49003 [TLN]) 3.0503
Equity(1062 [BPOP]) 3.5851
Equity(23021 [ECA]) 3.6096
Equity(7583 [TRN]) 3.8145
Equity(26322 [ACAD]) 4.1068
Equity(7844 [USG]) 4.1085
Equity(39797 [OAS]) 4.1424
Equity(26211 [AGO]) 4.2473

By using get_fundamental():
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(26740 [NRF]) 0.7685
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(46191 [EPE]) 0.8089
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(46850 [GS_PRK]) 1.6556
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(4664 [SM]) 2.2902
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(28051 [UAL]) 2.3380
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(9038 [RIG]) 2.3540
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(15789 [DNR]) 2.6663
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(39495 [SDRL]) 2.7053
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(45971 [AAL]) 2.8355
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(5092 [MTG]) 2.9193
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(49781 [GS_PRN]) 3.0066
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(12065 [KEP]) 3.0071
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(49003 [TLN]) 3.0503
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(23055 [CIG]) 3.0777
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(33996 [CIG_C]) 3.5051
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(1062 [BPOP]) 3.5805
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(23021 [ECA]) 3.6096
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(7583 [TRN]) 3.8251
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(26322 [ACAD]) 4.1068
2016-06-01 before_trading_start:63 INFO pe_ratio:Equity(39797 [OAS]) 4.1424

By the second ones you can find [GS_PRK] and [GS_PRN] etc which are not appear by the first ones.

Cheers

2 responses

Hi Thomas,

Taking a look at the fundamentals data, I noticed that there might be a bug in the get_fundamentals() or Pipeline p/e ratio data. The values listed should be the same.

I've notified our data team, and they're going to look into it.

Thanks for reporting this.

-Lotanna

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Many thank!