robin_stocks icon indicating copy to clipboard operation
robin_stocks copied to clipboard

Text that says Found Additional pages. Loading page X

Open bhbmaster opened this issue 4 years ago • 4 comments

When I query all stock orders I get this print out

Found Additional pages.
Loading page 2 ...
Loading page 3 ...
Loading page 4 ...

I don't think that should be printed. Perhaps you can make it not print by default. I have my own way to remove out of the output, I just don't think it should fit in to the final product. But that is up to you.

bhbmaster avatar Dec 01 '20 18:12 bhbmaster

The alternative would be some async function that returns when complete. The info that it's loading is useful info. Perhaps a toggle verbosity flag would be useful though

edukaded avatar Dec 02 '20 12:12 edukaded

try

import os

helper.set_output(open(os.devnull,"w"))

jmfernandes avatar Jan 03 '21 20:01 jmfernandes

Hello! I have the same issue. I have added the helper.set code, but the response is still stuck at it. How do I exit out of it and continue with my loop? Thanks.

paraluke23 avatar Jan 06 '21 15:01 paraluke23

Is there a limit of page or record that will be pulled from the API? The loading pages are piling up and my script is getting slower to run on each cycle. I am on loading page 20 right now.

bbmak0 avatar Jan 10 '21 04:01 bbmak0