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

Order types #22449

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Order types #22449

wants to merge 4 commits into from

Conversation

samgermain
Copy link
Member

@samgermain samgermain commented May 9, 2024

% py blockchaincom cancelOrder 845046053386895      
Python v3.9.6
CCXT v4.3.18
blockchaincom.cancelOrder(845046053386895)
{'amount': None,
 'average': None,
 'clientOrderId': None,
 'cost': None,
 'datetime': None,
 'fee': None,
 'fees': [],
 'filled': None,
 'id': '845046053386895',
 'info': {},
 'lastTradeTimestamp': None,
 'lastUpdateTimestamp': None,
 'postOnly': None,
 'price': None,
 'reduceOnly': None,
 'remaining': None,
 'side': None,
 'status': None,
 'stopLossPrice': None,
 'stopPrice': None,
 'symbol': None,
 'takeProfitPrice': None,
 'timeInForce': None,
 'timestamp': None,
 'trades': [],
 'triggerPrice': None,
 'type': None}
% py blockchaincom cancelAllOrders ADA/USD
Python v3.9.6
CCXT v4.3.18
blockchaincom.cancelAllOrders(ADA/USD)
[]

@carlosmiei carlosmiei self-assigned this May 10, 2024
@@ -875,7 +875,7 @@ export default class lykke extends Exchange {
}, market);
}

async cancelOrder (id: string, symbol: Str = undefined, params = {}) {
async cancelOrder (id: string, symbol: Str = undefined, params = {}): Promise<Order> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

cancelOrder returns the raw response here

 return await this.privateDe ...

@@ -1354,7 +1354,7 @@ export default class whitebit extends Exchange {
return this.parseOrder (response);
}

async cancelOrder (id: string, symbol: Str = undefined, params = {}) {
async cancelOrder (id: string, symbol: Str = undefined, params = {}): Promise<Order> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here, returns unparsed response

@@ -876,7 +876,7 @@ export default class timex extends Exchange {
return this.parseOrder (order, market);
}

async cancelOrder (id: string, symbol: Str = undefined, params = {}) {
async cancelOrder (id: string, symbol: Str = undefined, params = {}): Promise<Order> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

@@ -477,7 +477,7 @@ export default class zaif extends Exchange {
}, market);
}

async cancelOrder (id: string, symbol: Str = undefined, params = {}) {
async cancelOrder (id: string, symbol: Str = undefined, params = {}): Promise<Order> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

@@ -1476,7 +1476,7 @@ export default class zonda extends Exchange {
});
}

async cancelOrder (id: string, symbol: Str = undefined, params = {}) {
async cancelOrder (id: string, symbol: Str = undefined, params = {}): Promise<Order> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

@carlosmiei
Copy link
Collaborator

@samgermain We have a lot of methods that besides the type need to be adjusted to return the proper structure, many of them just return the raw response from the exchange

@samgermain
Copy link
Member Author

@samgermain We have a lot of methods that besides the type need to be adjusted to return the proper structure, many of them just return the raw response from the exchange

yeah I'm working on it, it's quite a few changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants