GET api/InvestmentProfit/{id}?type={type}

Gets a list of investment profit.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Organization Id.

integer

Required

type

List Type.

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of InvestmentTransaction
NameDescriptionTypeAdditional information
UpdateType

string

None.

InvestmentTransactionId

integer

None.

Action

string

None.

Quantity

decimal number

None.

StockSymbol

string

None.

PricePerShare

decimal number

None.

PurchaseAmount

decimal number

None.

TransactionDate

date

None.

DayCount

integer

None.

InvestmentAccountId

integer

None.

InvestmentAccount

string

None.

GlobalId

string

None.

OrganizationId

integer

None.

UpdatedDate

date

None.

UpdatedBy

string

None.

UpdatedByName

string

None.

LastPrice

decimal number

None.

LastPriceDate

date

None.

Profit

decimal number

None.

ProfitPercentage

decimal number

None.

Color

string

None.

InvestmentAccountCategoryId

integer

None.

InvestmentAccountCategory

string

None.

TransactionYear

integer

None.

BuyPricePerShare

decimal number

None.

CurrentValue

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "UpdateType": "sample string 1",
    "InvestmentTransactionId": 2,
    "Action": "sample string 3",
    "Quantity": 1.0,
    "StockSymbol": "sample string 4",
    "PricePerShare": 1.0,
    "PurchaseAmount": 1.0,
    "TransactionDate": "2025-01-16T18:42:56.1988304+00:00",
    "DayCount": 1,
    "InvestmentAccountId": 1,
    "InvestmentAccount": "sample string 5",
    "GlobalId": "sample string 6",
    "OrganizationId": 1,
    "UpdatedDate": "2025-01-16T18:42:56.1988304+00:00",
    "UpdatedBy": "sample string 7",
    "UpdatedByName": "sample string 8",
    "LastPrice": 1.0,
    "LastPriceDate": "2025-01-16T18:42:56.1988304+00:00",
    "Profit": 1.0,
    "ProfitPercentage": 1.0,
    "Color": "sample string 9",
    "InvestmentAccountCategoryId": 1,
    "InvestmentAccountCategory": "sample string 10",
    "TransactionYear": 1,
    "BuyPricePerShare": 1.0,
    "CurrentValue": 1.0
  },
  {
    "UpdateType": "sample string 1",
    "InvestmentTransactionId": 2,
    "Action": "sample string 3",
    "Quantity": 1.0,
    "StockSymbol": "sample string 4",
    "PricePerShare": 1.0,
    "PurchaseAmount": 1.0,
    "TransactionDate": "2025-01-16T18:42:56.1988304+00:00",
    "DayCount": 1,
    "InvestmentAccountId": 1,
    "InvestmentAccount": "sample string 5",
    "GlobalId": "sample string 6",
    "OrganizationId": 1,
    "UpdatedDate": "2025-01-16T18:42:56.1988304+00:00",
    "UpdatedBy": "sample string 7",
    "UpdatedByName": "sample string 8",
    "LastPrice": 1.0,
    "LastPriceDate": "2025-01-16T18:42:56.1988304+00:00",
    "Profit": 1.0,
    "ProfitPercentage": 1.0,
    "Color": "sample string 9",
    "InvestmentAccountCategoryId": 1,
    "InvestmentAccountCategory": "sample string 10",
    "TransactionYear": 1,
    "BuyPricePerShare": 1.0,
    "CurrentValue": 1.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfInvestmentTransaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <InvestmentTransaction>
    <Action>sample string 3</Action>
    <BuyPricePerShare>1</BuyPricePerShare>
    <Color>sample string 9</Color>
    <CurrentValue>1</CurrentValue>
    <DayCount>1</DayCount>
    <GlobalId>sample string 6</GlobalId>
    <InvestmentAccount>sample string 5</InvestmentAccount>
    <InvestmentAccountCategory>sample string 10</InvestmentAccountCategory>
    <InvestmentAccountCategoryId>1</InvestmentAccountCategoryId>
    <InvestmentAccountId>1</InvestmentAccountId>
    <InvestmentTransactionId>2</InvestmentTransactionId>
    <LastPrice>1</LastPrice>
    <LastPriceDate>2025-01-16T18:42:56.1988304+00:00</LastPriceDate>
    <OrganizationId>1</OrganizationId>
    <PricePerShare>1</PricePerShare>
    <Profit>1</Profit>
    <ProfitPercentage>1</ProfitPercentage>
    <PurchaseAmount>1</PurchaseAmount>
    <Quantity>1</Quantity>
    <StockSymbol>sample string 4</StockSymbol>
    <TransactionDate>2025-01-16T18:42:56.1988304+00:00</TransactionDate>
    <TransactionYear>1</TransactionYear>
    <UpdateType>sample string 1</UpdateType>
    <UpdatedBy>sample string 7</UpdatedBy>
    <UpdatedByName>sample string 8</UpdatedByName>
    <UpdatedDate>2025-01-16T18:42:56.1988304+00:00</UpdatedDate>
  </InvestmentTransaction>
  <InvestmentTransaction>
    <Action>sample string 3</Action>
    <BuyPricePerShare>1</BuyPricePerShare>
    <Color>sample string 9</Color>
    <CurrentValue>1</CurrentValue>
    <DayCount>1</DayCount>
    <GlobalId>sample string 6</GlobalId>
    <InvestmentAccount>sample string 5</InvestmentAccount>
    <InvestmentAccountCategory>sample string 10</InvestmentAccountCategory>
    <InvestmentAccountCategoryId>1</InvestmentAccountCategoryId>
    <InvestmentAccountId>1</InvestmentAccountId>
    <InvestmentTransactionId>2</InvestmentTransactionId>
    <LastPrice>1</LastPrice>
    <LastPriceDate>2025-01-16T18:42:56.1988304+00:00</LastPriceDate>
    <OrganizationId>1</OrganizationId>
    <PricePerShare>1</PricePerShare>
    <Profit>1</Profit>
    <ProfitPercentage>1</ProfitPercentage>
    <PurchaseAmount>1</PurchaseAmount>
    <Quantity>1</Quantity>
    <StockSymbol>sample string 4</StockSymbol>
    <TransactionDate>2025-01-16T18:42:56.1988304+00:00</TransactionDate>
    <TransactionYear>1</TransactionYear>
    <UpdateType>sample string 1</UpdateType>
    <UpdatedBy>sample string 7</UpdatedBy>
    <UpdatedByName>sample string 8</UpdatedByName>
    <UpdatedDate>2025-01-16T18:42:56.1988304+00:00</UpdatedDate>
  </InvestmentTransaction>
</ArrayOfInvestmentTransaction>