trivium-python-sdk
Project description
trivium-python-sdk
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.2.8.dev4
- Package version: 0.2.8.dev4
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.8+
Installation & Usage
pip install
pip install trivium-python-sdk
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import trivium_python_sdk
from trivium_python_sdk.rest import ApiException
from pprint import pprint
import os
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = trivium_python_sdk.Configuration(
host = "https://staging.api.triviumcapital.tech" # staging
# host = "https://production.api.triviumcapital.tech" # production
api_key={"apiKeyAuth": os.environ["TRIVIUM_API_KEY"]}
access_token = os.environ["TRIVIUM_API_SECRET"]
)
# Enter a context with an instance of the API client
with trivium_python_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = trivium_python_sdk.CashApi(api_client)
account_id = '40117016-ac89-4690-9986-01102be1ac9b' # str |
try:
api_response = api_instance.get_api_v1_cash_account_accountid(account_id)
print("The response of CashApi->get_api_v1_cash_account_accountid:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling CashApi->get_api_v1_cash_account_accountid: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CashApi | get_api_v1_cash_account_accountid | GET /api/v1/cash/account/{accountId} | |
| CashApi | get_api_v1_cash_account_user_userid | GET /api/v1/cash/account/user/{userId} | |
| CashApi | get_api_v1_cash_balance_userid | GET /api/v1/cash/balance/{userId} | |
| CashApi | get_api_v1_cash_rates | GET /api/v1/cash/rates | |
| CashApi | get_api_v1_cash_transactions_accountid | GET /api/v1/cash/transactions/{accountId} | |
| CashApi | get_api_v1_cash_transactions_redemption_info | GET /api/v1/cash/transactions/redemption/info | |
| CashApi | post_api_v1_cash_account | POST /api/v1/cash/account | |
| CashApi | post_api_v1_cash_events | POST /api/v1/cash/events | |
| CashApi | post_api_v1_cash_request_deposit_accountid | POST /api/v1/cash/request/deposit/{accountId} | |
| CashApi | post_api_v1_cash_request_redemption_accountid | POST /api/v1/cash/request/redemption/{accountId} | |
| CashApi | put_api_v1_cash_callback | PUT /api/v1/cash/callback | |
| FixedDepositApi | get_api_v1_fixeddeposit_placement_placementid | GET /api/v1/fixedDeposit/placement/{placementId} | |
| FixedDepositApi | get_api_v1_fixeddeposit_user_userid | GET /api/v1/fixedDeposit/user/{userId} | |
| FixedDepositApi | put_api_v1_fixeddeposit_placement_placementid | PUT /api/v1/fixedDeposit/placement/{placementId} | |
| ManagedPortfoliosApi | get_api_v1_portfolio_available_userid | GET /api/v1/portfolio/available/{userId} | |
| ManagedPortfoliosApi | get_api_v1_portfolio_performance_investedportfolioid | GET /api/v1/portfolio/performance/{investedPortfolioId} | |
| ManagedPortfoliosApi | get_api_v1_portfolio_positions_userid | GET /api/v1/portfolio/positions/{userId} | |
| ManagedPortfoliosApi | post_api_v1_portfolio_deposit | POST /api/v1/portfolio/deposit | |
| ManagedPortfoliosApi | post_api_v1_portfolio_redemption | POST /api/v1/portfolio/redemption | |
| PaymentsApi | get_api_v1_payments_account_accountid | GET /api/v1/payments/account/{accountId} | |
| PaymentsApi | get_api_v1_payments_account_user_userid | GET /api/v1/payments/account/user/{userId} | |
| PaymentsApi | get_api_v1_payments_balances_userid | GET /api/v1/payments/balances/{userId} | |
| PaymentsApi | post_api_v1_payments_account | POST /api/v1/payments/account | |
| PaymentsApi | post_api_v1_payments_payout | POST /api/v1/payments/payout | |
| PaymentsApi | post_api_v1_payments_payout_approve | POST /api/v1/payments/payout/approve | |
| StatementApi | get_api_v1_statement_monthly_userid | GET /api/v1/statement/monthly/{userId} | |
| TradingApi | get_api_v1_trading_instrument_available_userid | GET /api/v1/trading/instrument/available/{userId} | |
| TradingApi | get_api_v1_trading_instrument_userid_symbol | GET /api/v1/trading/instrument/{userId}/{symbol} | |
| TradingApi | get_api_v1_trading_positions_userid | GET /api/v1/trading/positions/{userId} | |
| TradingApi | post_api_v1_trading_order_userid | POST /api/v1/trading/order/{userId} | |
| TransactionsApi | get_api_v1_transactions_userid | GET /api/v1/transactions/{userId} | |
| UserApi | get_api_v1_user_userid | GET /api/v1/user/{userId} | |
| UserApi | get_api_v1_user_userid_sign_embedded | GET /api/v1/user/{userId}/sign/embedded | |
| UserApi | post_api_v1_user | POST /api/v1/user | |
| UserApi | post_api_v1_user_events | POST /api/v1/user/events | |
| UserApi | post_api_v1_user_userid_documents | POST /api/v1/user/{userId}/documents |
Documentation For Models
- Account
- AccountStatus
- AccountType
- Action
- AdHocPayoutIntention
- ApprovePayout
- AssetClass
- AssetClassProportion
- BadRequest
- Balance
- Balances
- BankAccountDetails
- BeneficiaryDetails
- BuySell
- CashAccountActivated
- CashCallbackEvent
- CashDeposit
- CashInboundCallbackEvent
- CashRedemption
- ChargeType
- CompanyDetails
- Composition
- CorporateBeneficiaryDetails
- CountryProportion
- CreateAccountRequest
- CreateOnboardingDocumentRequest
- CreateOnboardingDocumentResponse
- CreateOrderRequest
- CreateOrderResponse
- CreatePaymentsAccountRequest
- Deposit
- DepositInstructions
- DepositPortfolioRequest
- DepositRequest
- DepositResponse
- DepositSettled
- EarningsToDate
- Fast
- FastParticipant
- FixedDepositPlacement
- FixedDepositRedemption
- FixedDepositTransfer
- Fund
- IndividualBeneficiaryDetails
- IndividualDetails
- InstrumentInformation
- InstrumentQuote
- InternationalTransfer
- InvestedPortfolio
- LimitOrder
- LocalTransfer
- LockedFixedDeposit
- MarketOrder
- MonthlyStatementMetadata
- NotFound
- OnboardingDocumentType
- Order
- PaginationResultUserTransaction
- PastReturn
- PaymentBalance
- PaymentBalances
- PaymentIncoming
- PaymentOutgoing
- PaymentPurpose
- PaymentType
- PaymentsAccount
- PayoutIntention
- PayoutResponse
- PendingFixedDeposit
- PerformanceSnapshot
- PortfolioInformation
- PortfolioPerformance
- Position
- ProcessFixedDepositPlacementRequest
- ProcessingFixedDeposit
- ProviderDetails
- QuoteDetails
- Rates
- RedeemPortfolioRequest
- RedeemedFixedDeposit
- Redemption
- RedemptionInfo
- RedemptionReconciled
- RedemptionRequest
- RedemptionResponse
- RedemptionSettled
- RetrieveDocumentSigningLinkResponse
- RoutingCodeType
- SubscribeCallbackRequest
- SubscribeCallbackRequestWithSignature
- SubscribeCallbackResponse
- SubscribeCallbackResponsePublicKey
- Swift
- Transaction
- TransactionStatus
- Transactions
- Transfer
- TransferDetails
- Unauthorized
- User
- UserActivated
- UserCallbackEvent
- UserDetails
- UserStatus
- UserTransaction
Documentation For Authorization
Authentication schemes defined for the API:
apiKeyAuth
- Type: API key
- API key parameter name: X-Api-Key
- Location: HTTP header
httpAuth
- Type: Bearer authentication
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trivium_python_sdk-0.2.8.dev4.tar.gz.
File metadata
- Download URL: trivium_python_sdk-0.2.8.dev4.tar.gz
- Upload date:
- Size: 85.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24a49da261b558a1788a6f858da8c159c3bee5d5028abf163c8e4fa5c36b59ae
|
|
| MD5 |
4f36ea89ce97a2a2b4761db6ad11a977
|
|
| BLAKE2b-256 |
84f5935a2bbb1b75aac09d5f2e182047719e7476002f01d0fcfcb71656f78e1d
|
File details
Details for the file trivium_python_sdk-0.2.8.dev4-py3-none-any.whl.
File metadata
- Download URL: trivium_python_sdk-0.2.8.dev4-py3-none-any.whl
- Upload date:
- Size: 193.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4173a1506ebd1a4f21684cacfc53e78d7af57f4d98de2fc51408fb5444ab0df2
|
|
| MD5 |
8aea5644b9abf4fc2325981f01208b70
|
|
| BLAKE2b-256 |
12ea48ea3fb7ce66dac32fc35d7cb69363811136e6d03525ad0767c769e8a0f5
|