Crate sharesight_types

Crate sharesight_types 

Source

Structs§

CapitalGains
Return a report on capital gains tax (for Australian portfolios only)
CapitalGainsDiscountedCapitalGainDistributionsSuccess
CapitalGainsLongTermParcelsSuccess
CapitalGainsLossParcelsSuccess
CapitalGainsNonDiscountedCapitalGainDistributionsSuccess
CapitalGainsParameters
CapitalGainsShortTermParcelsSuccess
CapitalGainsSuccess
CapitalGainsUrlDisplay
CashAccountCreate
Creates a new cash account within a portfolio.
CashAccountCreateCashAccountLinksSuccess
CashAccountCreateCashAccountParameters
CashAccountCreateCashAccountSuccess
CashAccountCreateParameters
CashAccountCreateSuccess
CashAccountCreateUrlDisplay
CashAccountDelete
Deletes an existing cash account.
CashAccountDeleteParameters
CashAccountDeleteUrlDisplay
CashAccountShow
Returns details about a cash account including its balance on a specified date.
CashAccountShowLinksSuccess
CashAccountShowParameters
CashAccountShowSuccess
CashAccountShowUrlDisplay
CashAccountTransactionCreate
Creates a new cash transaction within a cash account.
CashAccountTransactionCreateCashAccountTransactionLinksSuccess
CashAccountTransactionCreateCashAccountTransactionSuccess
CashAccountTransactionCreateParameters
CashAccountTransactionCreateSuccess
CashAccountTransactionCreateUrlDisplay
CashAccountTransactionDelete
Deletes an existing cash account transaction.
CashAccountTransactionDeleteParameters
CashAccountTransactionDeleteUrlDisplay
CashAccountTransactionType
CashAccountTransactionUpdate
Update an existing cash account transaction.
CashAccountTransactionUpdateCashAccountTransactionLinksSuccess
CashAccountTransactionUpdateCashAccountTransactionSuccess
CashAccountTransactionUpdateParameters
CashAccountTransactionUpdateSuccess
CashAccountTransactionUpdateUrlDisplay
CashAccountTransactionsList
Returns list of transactions for a cash account.
CashAccountTransactionsListCashAccountTransactionsLinksSuccess
CashAccountTransactionsListCashAccountTransactionsSuccess
CashAccountTransactionsListLinksSuccess
CashAccountTransactionsListParameters
CashAccountTransactionsListSuccess
CashAccountTransactionsListUrlDisplay
CashAccountUpdate
Updates attributes on an existing cash account.
CashAccountUpdateLinksSuccess
CashAccountUpdateParameters
CashAccountUpdateSuccess
CashAccountUpdateUrlDisplay
CashAccountsList
Returns list of cash accounts for a portfolio. If you want to only access the cash account of one particular portfolios, use https://api.sharesight.com/api/v2/portfolios/:id/cash_accounts.json. The response will be the same.
CashAccountsListCashAccountsLinksSuccess
CashAccountsListCashAccountsSuccess
CashAccountsListLinksSuccess
CashAccountsListParameters
CashAccountsListSuccess
CountryList
Access Sharesight country defintions
CountryListApiTransactionSuccess
CountryListCountriesSuccess
CountryListLinksSuccess
CountryListParameters
CountryListSuccess
CouponCodeCreate
Apply a coupon code to the current user
CouponCodeCreateApiTransactionSuccess
CouponCodeCreateParameters
CouponCodeCreateSuccess
CouponCodeDelete
Delete a coupon code from the current user
CouponCodeDeleteApiTransactionSuccess
CouponCodeDeleteSuccess
CouponCodeList
Return the coupon code for the current user
CouponCodeListApiTransactionSuccess
CouponCodeListSuccess
CouponRateCreate
Creates coupon rates for a custom investment
CouponRateCreateApiTransactionSuccess
CouponRateCreateCouponRateSuccess
CouponRateCreateParameters
CouponRateCreateSuccess
CouponRateCreateUrlDisplay
CouponRateDelete
Deletes custom investment coupon rates
CouponRateDeleteApiTransactionSuccess
CouponRateDeleteLinksSuccess
CouponRateDeleteParameters
CouponRateDeleteSuccess
CouponRateDeleteUrlDisplay
CouponRateList
Retrieves coupon rates for a fixed interest custom investment
CouponRateListApiTransactionSuccess
CouponRateListCouponRatesSuccess
CouponRateListPaginationSuccess
CouponRateListParameters
CouponRateListSuccess
CouponRateListUrlDisplay
CouponRateUpdate
Updates custom investment coupon rates
CouponRateUpdateApiTransactionSuccess
CouponRateUpdateCouponRateSuccess
CouponRateUpdateParameters
CouponRateUpdateSuccess
CouponRateUpdateUrlDisplay
Currencies
Access currency definitions
CurrenciesCurrenciesSuccess
CurrenciesSuccess
CustomInvestmentCreate
Create a Custom Investment
CustomInvestmentCreateApiTransactionSuccess
CustomInvestmentCreateCustomInvestmentPortfolioSuccess
CustomInvestmentCreateCustomInvestmentSuccess
CustomInvestmentCreateLinksSuccess
CustomInvestmentCreateParameters
CustomInvestmentCreateSuccess
CustomInvestmentDelete
Delete a Custom Investment
CustomInvestmentDeleteApiTransactionSuccess
CustomInvestmentDeleteLinksSuccess
CustomInvestmentDeleteParameters
CustomInvestmentDeleteSuccess
CustomInvestmentDeleteUrlDisplay
CustomInvestmentList
Retrieves a list of Custom Investments
CustomInvestmentListApiTransactionSuccess
CustomInvestmentListCustomInvestmentsPortfolioSuccess
CustomInvestmentListCustomInvestmentsSuccess
CustomInvestmentListLinksSuccess
CustomInvestmentListParameters
CustomInvestmentListSuccess
CustomInvestmentPriceCreate
Create a price entry for a custom investment
CustomInvestmentPriceCreateApiTransactionSuccess
CustomInvestmentPriceCreateLinksSuccess
CustomInvestmentPriceCreateParameters
CustomInvestmentPriceCreateSuccess
CustomInvestmentPriceCreateUrlDisplay
CustomInvestmentPriceDelete
Delete a price for a custom investment
CustomInvestmentPriceDeleteApiTransactionSuccess
CustomInvestmentPriceDeleteLinksSuccess
CustomInvestmentPriceDeleteParameters
CustomInvestmentPriceDeleteSuccess
CustomInvestmentPriceDeleteUrlDisplay
CustomInvestmentPriceUpdate
Update a price for a custom investment
CustomInvestmentPriceUpdateApiTransactionSuccess
CustomInvestmentPriceUpdateLinksSuccess
CustomInvestmentPriceUpdateParameters
CustomInvestmentPriceUpdateSuccess
CustomInvestmentPriceUpdateUrlDisplay
CustomInvestmentShow
Retrieves a single Custom Investment
CustomInvestmentShowApiTransactionSuccess
CustomInvestmentShowCustomInvestmentPortfolioSuccess
CustomInvestmentShowCustomInvestmentSuccess
CustomInvestmentShowLinksSuccess
CustomInvestmentShowParameters
CustomInvestmentShowSuccess
CustomInvestmentShowUrlDisplay
Diversity
Retrieves the Diversity Report for the underlying portfolio
DiversityGroupsGroupElementsSuccess
DiversityGroupsGroupSuccess
DiversityGroupsSuccess
DiversityParameters
DiversitySuccess
DiversityUrlDisplay
DocumentShow
Returns a specific document.
DocumentShowParameters
DocumentShowSuccess
DocumentShowUrlDisplay
GroupsList
List all custom (and regular) groups which a user has defined
GroupsListGroupsSuccess
GroupsListSuccess
HoldingList
Retrieves a list of Holdings
HoldingListApiTransactionSuccess
HoldingListHoldingsAttachmentsSuccess
HoldingListHoldingsDocumentsSuccess
HoldingListHoldingsInstrumentCurrencySuccess
HoldingListHoldingsInstrumentSuccess
HoldingListHoldingsPortfolioSuccess
HoldingListHoldingsSuccess
HoldingListLinksSuccess
HoldingListSuccess
HoldingMergesCreate
The Create a holding merge endpoint is designed to record a company merger in the situation where you hold shares in a listed company that is wholly acquired by another listed company.
HoldingMergesCreateHoldingMergeSuccess
HoldingMergesCreateHoldingMergeTradesSuccess
HoldingMergesCreateParameters
HoldingMergesCreateSuccess
HoldingMergesCreateUrlDisplay
HoldingMergesUpdate
Update a holding merge.
HoldingMergesUpdateHoldingMergeSuccess
HoldingMergesUpdateHoldingMergeTradesSuccess
HoldingMergesUpdateParameters
HoldingMergesUpdateSuccess
HoldingMergesUpdateUrlDisplay
HoldingPortfolioList
Retrieves a list of a Portfolio’s Holdings
HoldingPortfolioListApiTransactionSuccess
HoldingPortfolioListHoldingsInstrumentCurrencySuccess
HoldingPortfolioListHoldingsInstrumentSuccess
HoldingPortfolioListHoldingsPortfolioSuccess
HoldingPortfolioListHoldingsSuccess
HoldingPortfolioListLinksPortfolioSuccess
HoldingPortfolioListLinksSelfSuccess
HoldingPortfolioListLinksSuccess
HoldingPortfolioListParameters
HoldingPortfolioListSuccess
HoldingPortfolioListUrlDisplay
HoldingShow
Retrieves the details of a holding
HoldingShowApiTransactionSuccess
HoldingShowHoldingAttachmentsSuccess
HoldingShowHoldingDocumentsSuccess
HoldingShowHoldingInstrumentCurrencySuccess
HoldingShowHoldingInstrumentSuccess
HoldingShowHoldingPayoutCurrencySuccess
HoldingShowHoldingPortfolioSuccess
HoldingShowHoldingSuccess
HoldingShowLinksSuccess
HoldingShowParameters
HoldingShowSuccess
HoldingShowUrlDisplay
HoldingTrades
Returns trade transactions for a holding.
HoldingTradesApiTransactionSuccess
HoldingTradesParameters
HoldingTradesRejected
Returns reject trade transactions for the holding.
HoldingTradesRejectedApiTransactionSuccess
HoldingTradesRejectedParameters
HoldingTradesRejectedSuccess
HoldingTradesRejectedTradesSuccess
HoldingTradesRejectedUrlDisplay
HoldingTradesSuccess
HoldingTradesTradesSuccess
HoldingTradesUrlDisplay
HoldingUpdate
Updates a holding; currently we’re only enabling/disabling drp
HoldingUpdateApiTransactionSuccess
HoldingUpdateHoldingSuccess
HoldingUpdateLinksSuccess
HoldingUpdateParameters
HoldingUpdateSuccess
HoldingUpdateUrlDisplay
IdentityByToken
This takes a Google id token, from an approved mobile app. The token will be validated. If the email matches one registered with Sharesight (as the primary or Google ID email) then an access_token will be returned. Otherwise, a 404 error will be generated.
IdentityByTokenParameters
IdentityByTokenSuccess
IdentitySignupByToken
This takes a Google id token, from an approved mobile app. The token will be validated. A new Sharesight account (with no holdings) will be created. If the email matches one registered with Sharesight (as the primary or Google ID email) then an error will be returned. The access and refresh tokens will be returned. (Note that the user must create a holding before the account becomes useful).
IdentitySignupByTokenParameters
IdentitySignupByTokenSuccess
ListHoldingPayouts
Returns payouts for the user’s holding between the two supplied dates.
ListHoldingPayoutsLinksSuccess
ListHoldingPayoutsParameters
ListHoldingPayoutsPayoutsDrpTradeAttributesSuccess
ListHoldingPayoutsPayoutsLinksSuccess
ListHoldingPayoutsPayoutsSuccess
ListHoldingPayoutsSuccess
ListHoldingPayoutsUrlDisplay
ListPortfolioPayouts
Returns payouts for the user’s portfolio between the two supplied dates.
ListPortfolioPayoutsLinksSuccess
ListPortfolioPayoutsParameters
ListPortfolioPayoutsPayoutsDrpTradeAttributesSuccess
ListPortfolioPayoutsPayoutsLinksSuccess
ListPortfolioPayoutsPayoutsSuccess
ListPortfolioPayoutsSuccess
ListPortfolioPayoutsUrlDisplay
ListUserInstruments
Returns a list of instruments in the current user’s portfolios.
ListUserInstrumentsInstrumentsSuccess
ListUserInstrumentsSuccess
MembershipCreate
Create a new membership for a user’s portfolio, using an existing user id or by creating a new user (providing email, etc.).
MembershipCreateInvitationParameters
MembershipCreateInvitationSuccess
MembershipCreateLinksSuccess
MembershipCreateMembershipParameters
MembershipCreateParameters
MembershipCreateSuccess
MembershipCreateUserParameters
MembershipCreateUserSuccess
MembershipDelete
Delete an existing user membership.
MembershipDeleteParameters
MembershipDeleteUrlDisplay
MembershipList
Lists memberships for the current user’s portfolios.
MembershipListLinksSuccess
MembershipListMembershipsInvitationSuccess
MembershipListMembershipsLinksSuccess
MembershipListMembershipsSuccess
MembershipListMembershipsUserSuccess
MembershipListPortfoliosSuccess
MembershipListSuccess
MembershipUpdate
Update an existing user membership.
MembershipUpdateInvitationSuccess
MembershipUpdateLinksSuccess
MembershipUpdateParameters
MembershipUpdateSuccess
MembershipUpdateUrlDisplay
MembershipUpdateUserSuccess
MyUser
Access information on the current user
MyUserSuccess
MyUserUserSuccess
PayoutConfirm
Confirm a payout. Tnis can be either a payout based on a company event or a payout based on the payment date of an interest payment.
PayoutConfirmParameters
PayoutConfirmPayoutDrpTradeAttributesParameters
PayoutConfirmPayoutParameters
PayoutConfirmPayoutSuccess
PayoutConfirmSuccess
PayoutCreate
Creates a new payout for this portfolio.
PayoutCreateParameters
PayoutCreatePayoutDrpTradeAttributesParameters
PayoutCreatePayoutDrpTradeAttributesSuccess
PayoutCreatePayoutLinksSuccess
PayoutCreatePayoutParameters
PayoutCreatePayoutSuccess
PayoutCreateSuccess
PayoutDelete
Deletes a confirmed payout, leaving an unconfirmed payout derived from the linked corporate action. (This is similar to the ‘Reset this payout’) button in the UI). See Reject Payout in order to hide the corporate action altogether.
PayoutDeleteParameters
PayoutDeleteSuccess
PayoutDeleteUrlDisplay
PayoutReject
Rejects an unconfirmed payout (based on a corporate action event). A payout derived from the linked corporate action will no longer appear in the users portfolio. (This is similar to the ‘Reject this Payout’ button in the UI). See Delete Payout in order to delete a confirmed payout.
PayoutRejectParameters
PayoutRejectPayoutSuccess
PayoutRejectSuccess
PayoutShow
Returns a specific payout.
PayoutShowDrpTradeAttributesSuccess
PayoutShowLinksSuccess
PayoutShowParameters
PayoutShowSuccess
PayoutShowUrlDisplay
PayoutUpdate
Updates a payout with the provided parameters
PayoutUpdateDrpTradeAttributesSuccess
PayoutUpdateLinksSuccess
PayoutUpdateParameters
PayoutUpdatePayoutDrpTradeAttributesParameters
PayoutUpdatePayoutParameters
PayoutUpdateSuccess
PayoutUpdateUrlDisplay
Performance
Retrieves the Performance Report for the underlying portfolio.
PerformanceCashAccountsSuccess
PerformanceHoldingsSuccess
PerformanceParameters
PerformanceShow
Retrieves the Performance Report for the underlying portfolio

Holding Limit

Depending on user’s plan the number of holdings shown in the report is limited. In that case the following response headers will be set:
  • X-HoldingLimit-Limit: The plan’s holding limit.
  • X-HoldingLimit-Total: The number of holding in the requested portfolio.
  • X-HoldingLimit-Reason: A human-readable string describing why the number of holdings is limited.
  • Remarks

    • Infinity is represented by string values ‘Infinity’ or ‘-Infinity’
    PerformanceShowApiTransactionSuccess
    PerformanceShowLinksSuccess
    PerformanceShowParameters
    PerformanceShowReportCashAccountsCurrencySuccess
    PerformanceShowReportCashAccountsPortfolioSuccess
    PerformanceShowReportCashAccountsSuccess
    PerformanceShowReportCombinedHoldingsInstrumentCurrencySuccess
    PerformanceShowReportCombinedHoldingsInstrumentSuccess
    PerformanceShowReportCombinedHoldingsPortfoliosSuccess
    PerformanceShowReportCombinedHoldingsSuccess
    PerformanceShowReportCurrencySuccess
    PerformanceShowReportCustomGroupSuccess
    PerformanceShowReportHoldingsInstrumentCurrencySuccess
    PerformanceShowReportHoldingsInstrumentSuccess
    PerformanceShowReportHoldingsLabelsSuccess
    PerformanceShowReportHoldingsPortfolioSuccess
    PerformanceShowReportHoldingsSuccess
    PerformanceShowReportSubTotalsSuccess
    PerformanceShowReportSuccess
    PerformanceShowSuccess
    PerformanceShowUrlDisplay
    PerformanceSubTotalsSuccess
    PerformanceSuccess
    PerformanceUrlDisplay
    Portfolio
    Retrieves a portfolio by id
    PortfolioApiTransactionSuccess
    PortfolioCreate
    Create a new portfolio for the current user.
    PortfolioCreateLinksSuccess
    PortfolioCreateParameters
    PortfolioCreatePortfolioParameters
    PortfolioCreateSuccess
    PortfolioDelete
    Delete an existing user portfolio
    PortfolioDeleteParameters
    PortfolioDeleteSuccess
    PortfolioDeleteUrlDisplay
    PortfolioLinksSuccess
    PortfolioList
    Retrieves a list of a user’s portfolios
    PortfolioListApiTransactionSuccess
    PortfolioListLinksSuccess
    PortfolioListParameters
    PortfolioListPortfoliosSuccess
    PortfolioListSuccess
    PortfolioParameters
    PortfolioPortfolioSuccess
    PortfolioShow
    Returns a single portfolio with settings for the user.
    PortfolioShowLinksSuccess
    PortfolioShowParameters
    PortfolioShowSuccess
    PortfolioShowUrlDisplay
    PortfolioSuccess
    PortfolioUpdate
    Update an existing portfolio for the user.
    PortfolioUpdateLinksSuccess
    PortfolioUpdateParameters
    PortfolioUpdatePortfolioParameters
    PortfolioUpdateSuccess
    PortfolioUpdateUrlDisplay
    PortfolioUrlDisplay
    RequestSingleSignOn
    Single sign on authorisation. The single sign-on operation returns a URL that will allow the user to login to their Sharesight account without the need to enter their email address and password. The URL is valid for one minute. A single sign-on link or button in your application should be implemented so that the user click initiates this API call and then the URL returned is launched in the user’s browser. A “redirect_to” parameter can be appended to the login url. After successfully been logged in, the user will be then redirected to the specified redirect_to path; example: https://api.sharesight.com/users/sign_in?signon-token=token&redirect_to=/portfolios/1
    RequestSingleSignOnSuccess
    Revoke
    Disconnect a users API access. This operation invalidates the OAuth token for a user. We recommend you make this API call when a customer chooses to remove their connection via your system.
    RevokeApiTransactionSuccess
    RevokeParameters
    RevokeSuccess
    TradeConfirm
    Confirm a trade. This can be either a trade based on a company event or a sell trade based on the maturity date of an interest instrument.
    TradeConfirmParameters
    TradeConfirmSuccess
    TradeConfirmTradeSuccess
    TradeReject
    Reject a trade. This can be either a trade based on a company event or a sell trade based on the maturity date of an interest instrument.
    TradeRejectParameters
    TradeRejectSuccess
    TradeRejectTradeSuccess
    Trades
    Returns trade transactions for the user’s portfolio between the two supplied dates. If you want to only access the trades of a particular holding, use https://api.sharesight.com/api/v2/holdings/:holding_id/trades.json. The response will be the same.
    TradesApiTransactionSuccess
    TradesCreate
    Create a trade against a Portfolio or an existing Holding.
    TradesCreateApiTransactionSuccess
    TradesCreateParameters
    TradesCreateSuccess
    TradesCreateTradeParameters
    TradesCreateTradeSuccess
    TradesDestroy
    Deletes a trade
    TradesDestroyApiTransactionSuccess
    TradesDestroyParameters
    TradesDestroySuccess
    TradesDestroyUrlDisplay
    TradesParameters
    TradesShow
    Returns a trade transaction.
    TradesShowApiTransactionSuccess
    TradesShowParameters
    TradesShowSuccess
    TradesShowUrlDisplay
    TradesSuccess
    TradesTradesSuccess
    TradesUpdate
    Update an existing trade for the user. The trade is identified by the ‘id’. Any parameter supplied will replace that field on the trade. Other fields will remain unchanged.
    TradesUpdateApiTransactionSuccess
    TradesUpdateParameters
    TradesUpdateSuccess
    TradesUpdateTradeParameters
    TradesUpdateTradeSuccess
    TradesUpdateUrlDisplay
    TradesUrlDisplay
    UnrealisedCgt
    Return a report on unrealised capital gains tax (for Australian portfolios only)
    UnrealisedCgtLongTermParcelsSuccess
    UnrealisedCgtLossesSuccess
    UnrealisedCgtParameters
    UnrealisedCgtShortTermParcelsSuccess
    UnrealisedCgtSuccess
    UnrealisedCgtUrlDisplay
    UserSettingList
    Retrieves the user settings for the portfolio and current user. These are persisted in the database such that a user will have these settings retained between views of a page on any session
    UserSettingListApiTransactionSuccess
    UserSettingListParameters
    UserSettingListPortfolioUserSettingSuccess
    UserSettingListSuccess
    UserSettingListUrlDisplay
    UserSettingUpdate
    Updates the user settings for the portfolio and current user. These are persisted in the database such that a user will have these settings retained between views of a page on any session.
    UserSettingUpdateApiTransactionSuccess
    UserSettingUpdateParameters
    UserSettingUpdatePortfolioUserSettingSuccess
    UserSettingUpdatePortfolioUserSettingsParameters
    UserSettingUpdateSuccess
    UserSettingUpdateUrlDisplay
    Valuation
    Retrieves the Valuation Report for the underlying portfolio.
    ValuationCashAccountsSuccess
    ValuationHoldingsSuccess
    ValuationParameters
    ValuationSubTotalsSuccess
    ValuationSuccess
    ValuationUrlDisplay

    Enums§

    ApiHttpMethod
    CashAccountTransactionTypeName
    Country
    Currency
    Market
    PayoutDescription
    SaleAllocationMethod
    TradeDescription

    Constants§

    DEFAULT_API_HOST

    Traits§

    ApiEndpoint

    Type Aliases§

    Number