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

[TRA-104] Add subaccountNumber to the OrderResponseObject #1296

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Conversation

shrenujb
Copy link
Contributor

Changelist

Add subaccountNumber field to the OrderResponseObject struct

Test Plan

Modified existing tests

Author/Reviewer Checklist

  • If this PR has changes that result in a different app state given the same prior state and transaction list, manually add the state-breaking label.
  • If the PR has breaking postgres changes to the indexer add the indexer-postgres-breaking label.
  • If this PR isn't state-breaking but has changes that modify behavior in PrepareProposal or ProcessProposal, manually add the label proposal-breaking.
  • If this PR is one of many that implement a specific feature, manually label them all feature:[feature-name].
  • If you wish to for mergify-bot to automatically create a PR to backport your change to a release branch, manually add the label backport/[branch-name].
  • Manually add any of the following labels: refactor, chore, bug.

Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>
Copy link

linear bot commented Mar 31, 2024

Copy link
Contributor

coderabbitai bot commented Mar 31, 2024

Walkthrough

The recent updates focus on integrating subaccount number handling across various components of the system. This includes modifications in testing, API documentation, and core functionality to ensure that subaccount numbers are now properly included and processed within order-related operations. The changes span from the inclusion of the subaccount number in test scenarios and API documentation to the implementation of logic for retrieving and incorporating subaccount numbers in order processing workflows.

Changes

Files Change Summary
.../comlink/__tests__/controllers/api/v4/orders-controller.test.ts
.../comlink/__tests__/lib/request-helpers/request-transformer.test.ts
Added testConstants.defaultSubaccount.subaccountNumber parameter in function calls within tests.
.../comlink/public/api-documentation.md Added a new field subaccountNumber to the data structure in the API documentation.
.../comlink/src/controllers/api/v4/orders-controller.ts
.../comlink/src/request-helpers/request-transformer.ts
Updated logic and function signatures to include subaccountNumber, enhancing subaccount information handling in order processing.
.../comlink/src/types.ts Added a subaccountNumber field to the OrderResponseObject interface.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 85a0879 and b288c42.
Files ignored due to path filters (1)
  • indexer/services/comlink/public/swagger.json is excluded by !**/*.json
Files selected for processing (6)
  • indexer/services/comlink/tests/controllers/api/v4/orders-controller.test.ts (11 hunks)
  • indexer/services/comlink/tests/lib/request-helpers/request-transformer.test.ts (7 hunks)
  • indexer/services/comlink/public/api-documentation.md (5 hunks)
  • indexer/services/comlink/src/controllers/api/v4/orders-controller.ts (3 hunks)
  • indexer/services/comlink/src/request-helpers/request-transformer.ts (7 hunks)
  • indexer/services/comlink/src/types.ts (1 hunks)
Additional Context Used
Path-based Instructions (6)
indexer/services/comlink/src/types.ts (1)

**/**:
Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.

indexer/services/comlink/__tests__/lib/request-helpers/request-transformer.test.ts (1)

**/**:
Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.

indexer/services/comlink/src/controllers/api/v4/orders-controller.ts (1)

**/**:
Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.

indexer/services/comlink/src/request-helpers/request-transformer.ts (1)

**/**:
Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.

indexer/services/comlink/__tests__/controllers/api/v4/orders-controller.test.ts (1)

**/**:
Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.

indexer/services/comlink/public/api-documentation.md (1)

**/**:
Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.

Additional comments not posted (52)
indexer/services/comlink/src/types.ts (1)

297-297: The addition of subaccountNumber to the OrderResponseObject interface aligns with the PR objectives and enhances the data model by incorporating crucial subaccount number information for order processing and management. This change is consistent and follows TypeScript best practices for extending interfaces.

indexer/services/comlink/__tests__/lib/request-helpers/request-transformer.test.ts (7)

128-146: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [122-143]

The changes from lines 122 to 143 correctly add the subaccountNumber parameter to the postgresAndRedisOrderToResponseObject function call within the test. This ensures that the test scenarios accurately reflect the updated functionality and validate the integration of the subaccountNumber field.


162-170: The changes from lines 162 to 170 correctly add the subaccountNumber parameter to the postgresAndRedisOrderToResponseObject function call within the test. This modification is necessary for ensuring the test accurately reflects the updated functionality and validates the integration of the subaccountNumber field.


177-183: The changes from lines 177 to 183 correctly add the subaccountNumber parameter to the postgresAndRedisOrderToResponseObject function call within the test. This modification is necessary for ensuring the test accurately reflects the updated functionality and validates the integration of the subaccountNumber field.


190-196: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [193-205]

The changes from lines 193 to 205 correctly add the subaccountNumber parameter to the postgresAndRedisOrderToResponseObject function call within the test. This modification is necessary for ensuring the test accurately reflects the updated functionality and validates the integration of the subaccountNumber field.


205-215: The changes from lines 205 to 215 correctly add the subaccountNumber parameter to the postgresOrderToResponseObject function call within the test. This ensures that the test scenarios accurately reflect the updated functionality and validate the integration of the subaccountNumber field.


229-237: The changes from lines 229 to 237 correctly add the subaccountNumber parameter to the postgresOrderToResponseObject function call within the test. This modification is necessary for ensuring the test accurately reflects the updated functionality and validates the integration of the subaccountNumber field.


321-321: The changes from lines 321 correctly add the subaccountNumber parameter to the redisOrderToResponseObject function call within the test. This ensures that the test scenarios accurately reflect the updated functionality and validate the integration of the subaccountNumber field.

indexer/services/comlink/src/controllers/api/v4/orders-controller.ts (2)

158-158: The logic to include subaccountNumber in the mergePostgresAndRedisOrdersToResponseObjects function call within the listOrders method is correctly implemented. This ensures that the subaccountNumber is properly integrated into the order response objects, aligning with the PR objectives.


294-301: The conversion of subaccountNumber from a potentially string type to a number using the unary plus operator is correctly implemented in the router middleware for the listOrders endpoint. This ensures type consistency and aligns with the expected type for the subaccountNumber parameter in the listOrders method.

indexer/services/comlink/src/request-helpers/request-transformer.ts (1)

426-435: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [391-496]

The changes from lines 391 to 496 introduce the subaccountNumber parameter to various functions responsible for transforming database objects into response objects. This addition is consistent with the PR's objective to include subaccount information in the OrderResponseObject. However, it's crucial to ensure that the subaccountNumber is correctly sourced and validated before being passed to these functions to avoid potential issues with incorrect or missing subaccount data.

indexer/services/comlink/__tests__/controllers/api/v4/orders-controller.test.ts (1)

619-645: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [79-642]

The changes from lines 79 to 642 in the test file correctly update the function calls to include the subaccountNumber parameter, ensuring that the tests align with the updated function signatures. This is a necessary step to validate the integration of the subaccountNumber into the system and to ensure that the new functionality behaves as expected. It's important to verify that the subaccountNumber used in the tests accurately represents realistic scenarios and that edge cases related to subaccount handling are also considered in the test suite.

indexer/services/comlink/public/api-documentation.md (40)

1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [14-14]

The documentation mentions the base URL but does not specify the API version in the URL path. It's good practice to include the API version in the base URL to manage versioning and backward compatibility effectively.

Consider specifying the API version in the base URL, for example, https://dydx-testnet.imperator.co/v4/api.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [137-137]

The AddressResponse schema is correctly updated to include the subaccountNumber field. This addition is consistent with the PR objectives.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [188-188]

The subaccountNumber field is correctly added as a required parameter in the GetSubaccount endpoint. This change aligns with the PR objectives.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [262-262]

The SubaccountResponseObject schema correctly includes the subaccountNumber field, ensuring the API documentation reflects the new data model accurately.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [313-313]

The addition of the parentSubaccountNumber as a required parameter in the GetParentSubaccount endpoint is correctly documented.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [395-395]

The ParentSubaccountResponse schema is updated to include the parentSubaccountNumber field, which is essential for representing parent-subaccount relationships.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [448-448]

The subaccountNumber field is correctly added as a required query parameter in the GetAssetPositions endpoint, ensuring the API can filter asset positions by subaccount.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [525-525]

The parentSubaccountNumber field is correctly added as a required query parameter in the GetAssetPositionsForParentSubaccount endpoint, allowing for the retrieval of asset positions associated with a parent subaccount.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [472-472]

The AssetPositionResponse schema correctly includes the subaccountNumber field, ensuring the API documentation reflects the new data model accurately.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [549-549]

The AssetPositionResponse schema for the GetAssetPositionsForParentSubaccount endpoint correctly includes the subaccountNumber field. This consistency in schema updates across endpoints is commendable.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [648-648]

The CandleResponse schema is not directly related to the PR's primary objective but is essential for completeness in documenting the API's capabilities. Ensure all response schemas are kept up-to-date with any changes in the data model or functionality.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [768-768]

The inclusion of the subaccountNumber field as a required query parameter in the GetFills endpoint is correctly documented, aligning with the PR objectives to enhance subaccount data representation.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [813-813]

The FillResponse schema correctly reflects the addition of the subaccountNumber field, ensuring the API documentation is consistent with the updated data model.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [866-866]

The parentSubaccountNumber field is correctly added as a required query parameter in the GetFillsForParentSubaccount endpoint, allowing for the retrieval of fills associated with a parent subaccount.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [911-911]

The FillResponse schema for the GetFillsForParentSubaccount endpoint correctly includes the subaccountNumber field. This consistency in schema updates across endpoints is commendable.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [972-972]

The HeightResponse schema is not directly related to the PR's primary objective but is essential for completeness in documenting the API's capabilities. Ensure all response schemas are kept up-to-date with any changes in the data model or functionality.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1023-1023]

The inclusion of the subaccountNumber field as a required query parameter in the GetHistoricalPnl endpoint is correctly documented, aligning with the PR objectives to enhance subaccount data representation.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1209-1209]

The HistoricalPnlResponse schema correctly reflects the addition of the subaccountNumber field, ensuring the API documentation is consistent with the updated data model.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1262-1262]

The period query parameter in the GetAggregations endpoint is correctly documented. It's essential to specify the available options for such parameters to guide API consumers effectively.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1298-1298]

The HistoricalTradingRewardAggregationsResponse schema is not directly related to the PR's primary objective but is essential for completeness in documenting the API's capabilities. Ensure all response schemas are kept up-to-date with any changes in the data model or functionality.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1375-1375]

The OrderbookResponseObject schema is not directly related to the PR's primary objective but is essential for completeness in documenting the API's capabilities. Ensure all response schemas are kept up-to-date with any changes in the data model or functionality.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1428-1428]

The inclusion of the subaccountNumber field as a required query parameter in the ListOrders endpoint is correctly documented, aligning with the PR objectives to enhance subaccount data representation.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1501-1501]

The OrderResponseObject schema correctly reflects the addition of the subaccountNumber field, ensuring the API documentation is consistent with the updated data model.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1617-1617]

The orderId path parameter in the GetOrder endpoint is correctly documented. It's essential to specify the type and requirements for such parameters to guide API consumers effectively.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1655-1655]

The OrderResponseObject schema for the GetOrder endpoint correctly includes the subaccountNumber field. This consistency in schema updates across endpoints is commendable.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1705-1705]

The inclusion of the limit and ticker query parameters in the ListPerpetualMarkets endpoint is correctly documented. It's essential to specify the available options and default values for such parameters to guide API consumers effectively.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1763-1763]

The PerpetualMarketResponse schema is not directly related to the PR's primary objective but is essential for completeness in documenting the API's capabilities. Ensure all response schemas are kept up-to-date with any changes in the data model or functionality.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1816-1816]

The inclusion of the subaccountNumber field as a required query parameter in the ListPositions endpoint is correctly documented, aligning with the PR objectives to enhance subaccount data representation.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1863-1863]

The PerpetualPositionResponse schema correctly reflects the addition of the subaccountNumber field, ensuring the API documentation is consistent with the updated data model.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1916-1916]

The parentSubaccountNumber field is correctly added as a required query parameter in the ListPositionsForParentSubaccount endpoint, allowing for the retrieval of positions associated with a parent subaccount.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1963-1963]

The PerpetualPositionResponse schema for the ListPositionsForParentSubaccount endpoint correctly includes the subaccountNumber field. This consistency in schema updates across endpoints is commendable.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2015-2015]

The timePeriod query parameter in the Get endpoint for sparklines is correctly documented. It's essential to specify the available options for such parameters to guide API consumers effectively.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2043-2043]

The SparklineResponseObject schema is not directly related to the PR's primary objective but is essential for completeness in documenting the API's capabilities. Ensure all response schemas are kept up-to-date with any changes in the data model or functionality.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2104-2104]

The TimeResponse schema is not directly related to the PR's primary objective but is essential for completeness in documenting the API's capabilities. Ensure all response schemas are kept up-to-date with any changes in the data model or functionality.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2155-2155]

The inclusion of the ticker field as a required path parameter in the GetTrades endpoint is correctly documented. It's essential to specify the type and requirements for such parameters to guide API consumers effectively.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2183-2183]

The TradeResponse schema correctly reflects the addition of the subaccountNumber field, ensuring the API documentation is consistent with the updated data model.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2236-2236]

The inclusion of the subaccountNumber field as a required query parameter in the GetTransfers endpoint is correctly documented, aligning with the PR objectives to enhance subaccount data representation.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2273-2273]

The TransferResponse schema correctly reflects the addition of the subaccountNumber field, ensuring the API documentation is consistent with the updated data model.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2326-2326]

The parentSubaccountNumber field is correctly added as a required query parameter in the GetTransfersForParentSubaccount endpoint, allowing for the retrieval of transfers associated with a parent subaccount.


1480-1487: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2363-2363]

The ParentSubaccountTransferResponse schema for the GetTransfersForParentSubaccount endpoint correctly includes the subaccountNumber field. This consistency in schema updates across endpoints is commendable.

Comment on lines +192 to +204
// Get subaccount number from either Redis or Postgres
let subaccountNumber: number | undefined;
if (redisOrder !== null) {
subaccountNumber = redisOrder.order!.orderId!.subaccountId!.number;
} else if (postgresOrder !== undefined) {
const subaccount = await SubaccountTable.findById(postgresOrder.subaccountId);
if (subaccount === undefined) {
throw new NotFoundError(`Unable to find subaccount id ${postgresOrder.subaccountId}`);
}
subaccountNumber = subaccount.subaccountNumber;
} else {
throw new NotFoundError(`Unable to find order id ${orderId}`);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Tip

Codebase Verification

The verification process indicates that the specific error handling for not finding a subaccount in the getOrder method of orders-controller.ts does not appear to be adequately covered in tests. This conclusion is based on the absence of direct references to tests that simulate the scenario where a subaccount cannot be found, leading to the throwing of the NotFoundError with the message "Unable to find subaccount id".

Analysis chain

The logic to retrieve the subaccountNumber from either Redis or Postgres in the getOrder method is correctly implemented. This approach ensures that the subaccountNumber is available for order processing, enhancing the handling of subaccount information in order-related operations. However, it's important to ensure that error handling for not finding a subaccount is adequately tested.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify that error handling for not finding a subaccount is adequately covered in tests.
rg "Unable to find subaccount id" --type ts

Length of output: 209



Script:

#!/bin/bash
# Search for tests related to the getOrder method in orders-controller.ts
rg "getOrder" --type ts | rg "test"

Length of output: 19202

@shrenujb shrenujb merged commit e953077 into main Apr 1, 2024
11 checks passed
@shrenujb shrenujb deleted the tra104 branch April 1, 2024 20:22
dydxwill added a commit that referenced this pull request Apr 3, 2024
* Add subaccountNumber to PerpetualPositionResponseObject (#1274)

Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>

* [CT-712] send updates for both normal order matches and liquidation (#1280)

* Remove volatile market (#1263)

* [SKI-21] Bump slinky version to v0.3.1 (#1275)

* Bump slinky version

* Add cp number method

* clean up socks logging (#1285)

* [CT-681] fix liquidated side and offsetting side for indexer delevera… (#1284)

* [CT-681] fix liquidated side and offsetting side for indexer deleveraging events

* fix test

* fix test

* fix lint

* [TRA-105] Add API for parent subaccount perpetual positions (#1282)


Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>

* Use sample rate with stream destroyed stats. (#1294)

* Revert "[CT-708] Indexer track e2e latency (#1237)" (#1292)

This reverts commit 60b94df.

* Fix swagger generation makefile command / regen swagger docs (#1299)

* pull dydx fork to generate swagger properly

* remove the print

* remove vault constants (#1293)

* Remove custom ping message from socks (#1301)

* Add subaccountNumber to the OrderResponseObject (#1296)

Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>

* sample more metrics (#1304)

* [OTE-256] Add upgrade handler to initialize OI during upgrade handler (#1302)

* Add upgrade handler to initialize OI during upgrade handler

* nits

* Fix lib.ErrorLogWithError: properly pass in args (#1306)

* fix broken tests (#1312)

* Explicitly close websockets on errors (#1290)

* Increase the number of allowed connections to 8000 (#1317)

* [TRA-104] Add parentSubaccountNumber API for orders (#1313)


Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>

* Improve Slinky logs to prevent unnecessary logs (#1289)

* [SKI-26]: Prevent funding index update with no oracle prices from (#1321)

halting indexer

* Skip equity tier limit check in PlaceShortTermOrder (#1318)

* Skip equity tier limit check in PlaceShortTermOrder

* remove tests

* Add comment

* fix lint (#1323)

---------

Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>
Co-authored-by: shrenujb <98204323+shrenujb@users.noreply.github.com>
Co-authored-by: jayy04 <103467857+jayy04@users.noreply.github.com>
Co-authored-by: Eric Warehime <eric.warehime@gmail.com>
Co-authored-by: vincentwschau <99756290+vincentwschau@users.noreply.github.com>
Co-authored-by: Jonathan Fung <121899091+jonfung-dydx@users.noreply.github.com>
Co-authored-by: Tian <tian@dydx.exchange>
Co-authored-by: Teddy Ding <teddy@dydx.exchange>
Co-authored-by: roy-dydx <133032749+roy-dydx@users.noreply.github.com>
Co-authored-by: Christopher-Li <Christopher-Li@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants