Skip to content

Conversation

@aabbccgg
Copy link

@aabbccgg aabbccgg commented Sep 1, 2025

Add funds apis, include: watchlist(exist, add, remove, list), yield, search.

Revise the domain name of funds apis to the new one: danjuanapp.com -> danjuanfunds.com.

Support begin time in stocks' kline api.

Reuse the token from xueqiu stock to danjuanfunds, and allow user to set the danjuanfunds token manually.

Warning: You shouldn't manually set danjuanfunds token in most scenarios.

Add some comments.


def kline(symbol,period='day',count=284):
return utls.fetch(api_ref.kline.format(symbol, int(time.time()*1000), period, count))
def kline(symbol,begin=int(time.time()*1000),period='day',count=284):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

参数能不能换个顺序,来保持低版本的兼容性

else:
return os.environ['DANJUANTOKEN']

def set_token(token,danjuantoken=None):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果一个token就能用,咱就不搞两套了。都用token,不引入复杂性。

@uname-yang
Copy link
Owner

合并下所有commits,再加个readme

@aabbccgg aabbccgg closed this Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants