-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix-subscribe:fixing suscbribe with symbol #5
base: master
Are you sure you want to change the base?
Conversation
fix-subscribe:fixing suscbribe with symbol
update docs for subscribing
merge and adding docs readme
i think we can create dev branch for testing it,before merge to main branch |
Thanks for pr, but I can't accept it as is. There is no tests, some strange files like |
i think we can create new branch like dev branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how we can get ticks if callback is not disponible !!
volume: event.params.p[1].sds_1.s[0].v[5], | ||
symbol | ||
} | ||
// callback(candles) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't know why you comment the callback !!
]) | ||
connection.subscribe((event: any) => { | ||
if (event.name = "event") { | ||
if (event.params.p[1].sds_1?.s !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all event.params.p should be event.params
]) | ||
|
||
|
||
export async function connectAndSubscribe({ connection, symbols, timeframe = 1 }: GetCandlesParams) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where callback param !!
i just add subscribe with symbol and remove unused code