Skip to content
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

Patch 1 #350

Closed
wants to merge 7 commits into from
Closed

Patch 1 #350

wants to merge 7 commits into from

Conversation

MartoMcfly
Copy link
Contributor

Summary

  1. List All Convert Pairs
  2. Send quote request (USER_DATA)
  3. Accept Quote (TRADE)
  4. Order status (USER_DATA)
  5. Get Convert Trade History (USER_DATA)

Additional Information

  1. List All Convert Pairs
  2. Send quote request (USER_DATA)
  3. Accept Quote (TRADE)
  4. Order status (USER_DATA)
  5. Get Convert Trade History (USER_DATA)

Added 3 apis to convert currency
Added interfaces props for convert functions
Added 

4. Order status (USER_DATA)
5. Get Convert Trade History (USER_DATA)
added params for:
4. Order status (USER_DATA)
5. Get Convert Trade History (USER_DATA)
fixed capitalization for imported params
Various typos fixed
@MartoMcfly
Copy link
Contributor Author

Hello @tiagosiebler there seems to be a problem with my merge request, could you give me a hand?

@MartoMcfly
Copy link
Contributor Author

@tiagosiebler Hello, could you give me a hand on why the circle test is not valid?

Comment on lines 318 to 322
acceptQuoteRequest(
params: EnableConvertSubAccountParams,
): Promise<any>; {
return this.postPrivate('sapi/v1/convert/acceptQuote', params);
}
Copy link
Owner

@tiagosiebler tiagosiebler Jul 27, 2023

Choose a reason for hiding this comment

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

Typo here is breaking the build, should be:

Suggested change
acceptQuoteRequest(
params: EnableConvertSubAccountParams,
): Promise<any>; {
return this.postPrivate('sapi/v1/convert/acceptQuote', params);
}
acceptQuoteRequest(
params: EnableConvertSubAccountParams,
): Promise<any> {
return this.postPrivate('sapi/v1/convert/acceptQuote', params);
}

Comment on lines 324 to 346
enableConvertSubAccount(
params: AcceptQuoteRequestParams
): Promise<any>; {
return this.postPrivate('sapi/v1/broker/subAccount/convert', params);
}

convertQuoteRequest(
params: ConvertQuoteRequestParams,
): Promise<any>; {
return this.postPrivate('sapi/v1/convert/getQuote', params);
}

getOrderStatus(
params: GetOrderStatusParams,
): Promise<any>; {
return this.getPrivate('sapi/v1/convert/orderStatus', params);
}

getConvertTradeHistory(
params: GetConvertTradeHistoryParams,
): Promise<any>; {
return this.getPrivate('sapi/v1/convert/tradeFlow', params);
}
Copy link
Owner

Choose a reason for hiding this comment

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

Same for these

@MartoMcfly MartoMcfly closed this Jul 30, 2023
@MartoMcfly
Copy link
Contributor Author

MartoMcfly commented Jul 30, 2023 via email

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.

None yet

2 participants