Skip to content

[BFP-1194] Merge multiple TradingFees into one object#35

Merged
kevin-ip merged 20 commits intomainfrom
kevin/BFP-1194-fix-overlapping-names
Mar 20, 2025
Merged

[BFP-1194] Merge multiple TradingFees into one object#35
kevin-ip merged 20 commits intomainfrom
kevin/BFP-1194-fix-overlapping-names

Conversation

@kevin-ip
Copy link
Copy Markdown
Contributor

@kevin-ip kevin-ip commented Mar 19, 2025

Since OpenAPI YAML files define identical schemas and enums,
OpenAPI Codegen generates client code with overlapping names, such as Asset and Asset1.
Let's merge them into one.

EVS:
Rename EVS Asset -> AssetConfig

Hoist the following to common.yaml:

  • enums:

    • MarginType
    • OrderStatus
    • OrderTimeInForce
    • OrderType
    • PositionSide
    • SelfTradePreventionType
    • TradeSide
    • TradeType
    • TransactionType
  • objects:

    • Asset
    • Error
    • Trade
    • TradingFees

@kevin-ip kevin-ip force-pushed the kevin/BFP-1194-fix-overlapping-names branch 2 times, most recently from fe0d896 to db376f7 Compare March 19, 2025 21:06
@kevin-ip kevin-ip changed the title [BFP-1022] Merge multiple TradingFees into one object [BFP-1194] Merge multiple TradingFees into one object Mar 19, 2025
kevin-ip added 18 commits March 20, 2025 12:36
Since account-data-api.yaml and websocket-api.yaml both defined with
TradingFee with identical schema, openapi codegen generates
the client code with TradingFee and TradingFee1.
Let's merge the two into one object.
merging the two defined in exchange-api (EVS) and account-data-api (ADS):

* (ADS) tradeId -> id
* (EVS) timeAtMillis -> executedAtMillis
and the following enums:
* PositionSideEnm
* TradeSideEnum
* TradeTypeEnum
* TransactionTypeEnum
so that ADS service would not run into name collision
@kevin-ip kevin-ip force-pushed the kevin/BFP-1194-fix-overlapping-names branch from 2ae3f7a to f7fed60 Compare March 20, 2025 17:38
@kevin-ip kevin-ip marked this pull request as ready for review March 20, 2025 17:52
@kevin-ip kevin-ip requested a review from a team March 20, 2025 17:52
Copy link
Copy Markdown
Contributor

@alawrenc alawrenc left a comment

Choose a reason for hiding this comment

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

This is definitely better

@kevin-ip kevin-ip merged commit e233ee8 into main Mar 20, 2025
@kevin-ip kevin-ip deleted the kevin/BFP-1194-fix-overlapping-names branch March 20, 2025 17:57
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.

2 participants