MeroSamriddhi
  1. Trades
MeroSamriddhi
  • Auth
    • Auth
      • login
      • loginWithGoogle
      • loginWithApple
      • loginWithFacebook
      • register
      • changePassword
      • me
      • updateMe
      • addProfilePicture
      • initConnectEmail
      • verifyConnectEmail
      • connectGoogle
      • connectApple
      • connectFacebook
      • disconnectProvider
      • appleCallback
      • refreshToken
      • sendForgotPasswordOtp
      • validateForgotPasswordOtp
      • changePasswordWithOtp
    • Feedback
      • createFeedback
  • Stocks
    • Portfolios
      • getPortfolios
      • createPortfolio
      • resetPortfolio
      • getPortfolio
      • updatePortfolio
      • deletePortfolio
      • getPortfolioTrades
      • getPortfolioItems
      • addTrade
      • addTrades
      • getPortfolioItem
      • deletePortfolioItem
      • updatePortfolioItemTarget
      • getPortfolioItemTrades
      • getPortfolioItemTrade
      • updatePortfolioItemTrade
      • deletePortfolioItemTrade
    • Tickers
      • getTickers
      • createTicker
      • getTicker
      • deleteTicker
    • Watchlists
      • getWatchlists
      • createWatchlist
      • getWatchlist
      • updateWatchlist
      • deleteWatchlist
      • getWatchlistItem
      • deleteWatchlistItem
      • getWatchlistItems
      • addWatchlistItem
    • Layouts
      • getLayouts
      • createLayout
      • getLayout
      • updateLayout
      • deleteLayout
      • getWindows
      • createWindow
      • getWindow
      • updateWindow
      • deleteWindow
    • Trades
      • getTrades
        GET
    • Performance
      • getPerformance
      • getPortfolioPerformance
      • getPortfolioItemPerformance
  • Samriddhi
    • Utilities
      • processScreenshots
      • getExchangeRates
    • Category
      • getCategories
      • createCategory
      • getCategory
      • updateCategory
      • deleteCategory
    • Bank
      • getBanks
      • searchBanks
    • Account
      • createAccount
      • getAccounts
      • getAccount
      • updateAccount
      • deleteAccount
      • getAccountTransactions
      • createAccountTransaction
      • getAccountTransaction
      • updateAccountTransaction
      • deleteAccountTransaction
    • Transactions
      • getTransactions
    • Analytics
      • getReport
    • ScheduledPayment
      • getScheduledPayments
      • createScheduledPayment
      • getScheduledPayment
      • updateScheduledPayment
      • deleteScheduledPayment
    • Jewellery
      • getJewelleryRate
      • getJewelleryReport
      • createJewelleryTransaction
      • getJewelleryTransactions
      • getJewelleryTransaction
      • updateJewelleryTransaction
      • deleteJewelleryTransaction
  • Schemas
    • Schemas
      • BankAccount
      • TickerType
      • NewBankAccount
      • InterestConfig
      • NewInvestment
      • InvestmentType
      • Loan
      • InvestmentOption
      • Investment
      • BankAccountType
    • AuthUser
    • UserSession
    • PaginationMetadata
    • OAuthCredential
    • AuthToken
    • Bank
    • OAuthProvider
    • NewUser
    • Ticker
    • Account
    • GoogleCrediential
    • User
    • Location
    • AppleCredential
    • ForgotPasswordRequest
    • Portfolio
    • UpdateUser
    • NewAccount
    • FacebookCredential
    • LivePriceItem
    • NewTransaction
    • ReccuringConfig
    • NewPortfolio
    • Transaction
    • UserBalance
    • Feedback
    • PortfolioType
    • TransactionType
    • AccountBalance
    • PaginatedPortfolios
    • PortfolioItem
    • HoldingDays
    • TransactionsResult
    • PortfolioItemTarget
    • RecurringPeriod
    • StockTarget
    • EmailVerification
    • TransactionFacet
    • ScheduledPaymentsResult
    • PaginatedPortfolioItems
    • NewTrade
    • ScheduledPaymentFacet
    • Trade
    • Category
    • PaginatedTrades
    • NewCategory
    • AccountType
    • TradeType
    • CategoryType
    • BudgetTarget
    • DateRangeOptions
    • Watchlist
    • NewBudgetTarget
    • FutureDateRangeOptions
    • WatchlistItem
    • Budget
    • TickerAlert
    • CashFlow
    • TickerAlertType
    • BalanceTrend
    • PriceItem
    • Balance
    • IndexHistory
    • ExpenseSummary
    • PaymentStatus
    • SecurityType
    • ExpenseSummaryItem
    • Security
    • DashboardAnalytics
    • Report
    • ReportReturn
    • ReportRight
    • EPS
    • FloorSheetResponse
    • FloorSheetItem
    • Broker
    • FloorsheetSummary
    • NewScheduledPayment
    • MarketDepth
    • ScheduledPayment
    • MarketDepthList
    • JewelleryPriceBasis
    • Layout
    • JewelleryRate
    • Window
    • JewelleryType
    • WindowType
    • JewelleryTransactionType
    • WindowRect
    • JewelleryUnit
    • TradesFacet
    • NewJewelleryTransaction
    • TradesResult
    • JewelleryTransaction
    • PortfolioPerformance
    • JewelleryReport
    • ExchangeRate
    • ExchangeRateResponse
  1. Trades

getTrades

GET
/trades/allTrades

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8100/trades/allTrades?page&size&portfolioId&tickerId&from&to&q' \
--header 'Authorization: Basic <encoded-value>'

Responses

🟢200OK
application/json
Success
Body

Example
{
    "code": 0,
    "result": {
        "trades": [
            {
                "id": "string",
                "uid": "string",
                "createdAt": "string",
                "portfolioId": "string",
                "portfolio": {
                    "id": "string",
                    "name": "string",
                    "uid": "string",
                    "type": "INDIVIDUAL",
                    "createdAt": "string",
                    "updatedAt": "string"
                },
                "portfolioItemId": "string",
                "portfolioItem": {
                    "id": "string",
                    "uid": "string",
                    "createdAt": "string",
                    "portfolioId": "string",
                    "tickerId": "string",
                    "ticker": {
                        "id": "string",
                        "uid": "string",
                        "symbol": "string",
                        "name": "string"
                    },
                    "currentQuantity": 0,
                    "soldQuantity": 0,
                    "averagePrice": 0,
                    "totalInvestment": 0,
                    "soldAmount": 0,
                    "realizedPL": 0,
                    "brokerCommission": 0,
                    "capitalGainTax": 0,
                    "dpFee": 0,
                    "sebonCommission": 0,
                    "updatedAt": "string",
                    "target": {
                        "stopLossTarget": {
                            "price": 0,
                            "amount": 0,
                            "percentage": 0,
                            "alert": true
                        },
                        "profitTarget": {
                            "price": 0,
                            "amount": 0,
                            "percentage": 0,
                            "alert": true
                        }
                    },
                    "holdingDays": [
                        {
                            "date": "string",
                            "quantity": 0
                        }
                    ],
                    "version": 0
                },
                "tradeDate": "string",
                "type": "IPO",
                "quantity": 0,
                "price": 0,
                "totalTradeAmount": 0,
                "brokerCommissionPercentage": 0,
                "brokerCommission": 0,
                "capitalGainTax": 0,
                "capitalGainTaxPercentage": 0,
                "dpFee": 0,
                "sebonCommission": 0,
                "netAmount": 0,
                "netPrice": 0,
                "remarks": "string"
            }
        ],
        "facets": {
            "tradeType": [
                "IPO"
            ],
            "portfolioIds": [
                [
                    "string"
                ]
            ],
            "date": [
                [
                    "string"
                ]
            ],
            "tickerIds": [
                [
                    "string"
                ]
            ]
        }
    },
    "error": "string"
}
Modified at 2026-01-25 17:00:46
Previous
deleteWindow
Next
getPerformance
Built with