-
-
Notifications
You must be signed in to change notification settings - Fork 359
FEATURE: [exchange][hyperliquid] init hyperliquid exchange #2259
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
base: main
Are you sure you want to change the base?
Conversation
4fbb076 to
ac09965
Compare
ac09965 to
9ab74a6
Compare
| return data, nil | ||
| } | ||
|
|
||
| func (c *Client) newAuthenticatedRequest( |
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.
perhaps just replace NewAuthenticatedRequest ?
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.
done.
| size string `param:"s"` | ||
| price string `param:"p"` | ||
| reduceOnly bool `param:"r"` | ||
| clientOrderID *string `param:"c"` |
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 think this is not supported -- param tag inside the field with slice
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.
Yeah, it really doesn’t support that. Any idea how to deal with this kind of param?
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.
wrap it with a struct, and add String() method to marshal the internal payload into json string? I am not sure
is it a nested json data in the request?
0b17089 to
6dbf5f4
Compare
679e825 to
6dbf5f4
Compare
6dbf5f4 to
b281b82
Compare
b281b82 to
5b1a689
Compare
cdfe99f to
f54631d
Compare
f54631d to
d76bef3
Compare
|
|
||
| //go:generate GetRequest -url "/info" -type GetAccountBalanceRequest -responseDataType Account | ||
| type GetAccountBalanceRequest struct { | ||
| client requestgen.APIClient |
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.
why not using requestgen.AuthenticatedAPIClient here?
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.
The Hyperliquid /info API doesn't require any signatures to access; it's just public data on the chain.
09b7be7 to
379670f
Compare
379670f to
52e3317
Compare
bf7b6e9 to
d98867d
Compare
4eecddb to
4d96cbd
Compare
No description provided.