MCPcopy Create free account
hub / github.com/ccxt/ccxt / parseOrderSide

Method parseOrderSide

ts/src/bingx.ts:3476–3486  ·  view source on GitHub ↗
(side)

Source from the content-addressed store, hash-verified

3474 }
3475
3476 parseOrderSide (side) {
3477 const sides: Dict = {
3478 'BUY': 'buy',
3479 'SELL': 'sell',
3480 'SHORT': 'sell',
3481 'LONG': 'buy',
3482 'ask': 'sell',
3483 'bid': 'buy',
3484 };
3485 return this.safeString (sides, side, side);
3486 }
3487
3488 parseOrderType (type: Str) {
3489 const types: Dict = {

Callers 2

parseTradeMethod · 0.95
parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected