Skip to content

Commit

Permalink
php-snaptrade integration test (#597)
Browse files Browse the repository at this point in the history
* add snaptrade php integration test

* test passes + snapshot
  • Loading branch information
eddiechayes authored Feb 27, 2024
1 parent beb98c6 commit fb758b3
Show file tree
Hide file tree
Showing 401 changed files with 107,708 additions and 0 deletions.
58 changes: 58 additions & 0 deletions generator/konfig-integration-tests/sdks/php-snaptrade/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Created by https://www.toptal.com/developers/gitignore/api/vim,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=vim,macos

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Vim ###
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

# Temporary
.netrwhist
*~
# Auto-generated tag files
# tags
# Persistent undo
[._]*.un~

# End of https://www.toptal.com/developers/gitignore/api/vim,macos
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
examples: {}
examples_2: {}
operationIds: {}
operationTags: {}
renameTags: {}
requestSchemaNames:
/accounts/{accountId}/optionStrategy:
post:
application/json: OptionsGetOptionStrategyRequest
/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute:
post:
application/json: OptionsPlaceOptionStrategyRequest
/accounts/{accountId}/orders/cancel:
post:
application/json: TradingCancelUserAccountOrderRequest
/snapTrade/acceptDisclaimer:
post:
application/json: SnapTradeApiDisclaimerRequest
/snapTrade/apiCredentials:
post:
application/json: CreateSnapTradeParterApiCredentialsRequest
/trade/oco:
post:
application/json: TradingPlaceOcoOrderRequest
responseDescriptions: {}
responseSchemaNames:
/accounts:
get:
'200':
application/json: AccountInformationListUserAccountsResponse
/accounts/{accountId}:
get:
'200':
application/json: AccountInformationGetUserAccountDetailsResponse
put:
'200':
application/json: AccountInformationUpdateUserAccountResponse
/accounts/{accountId}/balances:
get:
'200':
'*/*': AccountInformationGetUserAccountBalanceResponse
/accounts/{accountId}/orders:
get:
'200':
application/json: AccountInformationGetUserAccountOrdersResponse
/accounts/{accountId}/positions:
get:
'200':
'*/*': AccountInformationGetUserAccountPositionsResponse
/accounts/{accountId}/symbols:
post:
'200':
'*/*': ReferenceDataSymbolSearchUserAccountResponse
/activities:
get:
'200':
application/json: TransactionsAndReportingGetActivitiesResponse
/authorizations:
get:
'200':
application/json: ConnectionsListBrokerageAuthorizationsResponse
/brokerageAuthorizationTypes:
get:
'200':
application/json: ReferenceDataListAllBrokerageAuthorizationTypeResponse
/brokerages:
get:
'200':
application/json: ReferenceDataListAllBrokeragesResponse
/currencies:
get:
'200':
application/json: ReferenceDataListAllCurrenciesResponse
/currencies/rates:
get:
'200':
application/json: ReferenceDataListAllCurrenciesRatesResponse
/exchanges:
get:
'200':
application/json: ReferenceDataGetStockExchangesResponse
/holdings:
get:
'200':
application/json: AccountInformationGetAllUserHoldingsResponse
/modelAssetClass:
get:
'200':
application/json: PortfolioManagementListAssetClassesResponse
/modelPortfolio:
get:
'200':
application/json: PortfolioManagementListModelPortfolioResponse
/portfolioGroups:
get:
'200':
application/json: PortfolioManagementListResponse
post:
'200':
application/json: PortfolioManagementCreateResponse
/portfolioGroups/{portfolioGroupId}/accounts:
get:
'200':
application/json: PortfolioManagmentListPortfolioAccountsResponse
/portfolioGroups/{portfolioGroupId}/balances:
get:
'200':
application/json: PortfolioManagementGetPortfolioBalancesResponse
/portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/impact:
get:
'200':
application/json: TradingGetCalculatedTradesImpactResponse
/portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/placeOrders:
post:
'200':
application/json: TradingPlaceCalculatedTradesResponse
/portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/{TradeId}:
get:
'200':
application/json: PortfolioManagementGetCalculatedTradeByIdResponse
/portfolioGroups/{portfolioGroupId}/excludedassets:
get:
'200':
application/json: PortfolioManagementGetPortoflioExcludedAssetsResponse
/portfolioGroups/{portfolioGroupId}/import:
post:
'200':
application/json: PortfolioManagementImportModelPortfolioResponse
/portfolioGroups/{portfolioGroupId}/symbols:
post:
'200':
application/json: PortfolioManagementSearchPortfolioSymbolsResponse
/portfolioGroups/{portfolioGroupId}/targets:
get:
'200':
application/json: PortfolioManagementGetPortfolioTargetsResponse
/securityTypes:
get:
'200':
application/json: ReferenceDataGetSecurityTypesResponse
/sessionEvents:
get:
'200':
application/json: ConnectionsSessionEventsResponse
/snapTrade/apiCredentials:
get:
'200':
application/json: CustomBrokerageApiCredentialsListResponse
/snapTrade/listUserErrors:
get:
'200':
application/json: ErrorLogsListUserErrorsResponse
/snapTrade/login:
post:
'200':
application/json: AuthenticationLoginSnapTradeUserResponse
/symbols:
post:
'200':
application/json: ReferenceDataGetSymbolsResponse
securityParameters:
PartnerClientId:
query: false
accounts:
query: false
brokerage:
query: false
brokerageAuthorizations:
query: false
brokerage_authorizations:
query: false
detailed:
query: false
endDate:
query: false
frequency:
query: false
sessionId:
query: false
startDate:
query: false
state:
query: false
symbol:
query: false
symbolId:
query: false
symbols:
query: false
use_ticker:
query: false
userId:
query: false
userSecret:
query: false
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.108

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extends:
- .konfig/ruleset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"stoplight.spectral",
"redhat.vscode-yaml"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"spectral.enable": true,
"files.associations": {
".konfigignore": "ignore"
},
"python.testing.pytestArgs": [
"sdks/python",
"-o",
"cache_dir=sdks/python/.pytest_cache"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"dotnet-test-explorer.testProjectPath": "**/*.sln",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"black-formatter.importStrategy": "fromEnvironment",
"python.formatting.provider": "none",
"python.analysis.typeCheckingMode": "basic",
"python.testing.unittestArgs": [
"-v",
"-s",
"./sdks/python",
"-p",
"test_*.py"
],
"java.compile.nullAnalysis.mode": "automatic",
"ruby.useBundler": true,
"ruby.useLanguageServer": true,
"ruby.intellisense": "rubyLocate",
"ruby.lint": {
"rubocop": {
"useBundler": true
}
},
"ruby.format": "rubocop"
}
7 changes: 7 additions & 0 deletions generator/konfig-integration-tests/sdks/php-snaptrade/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2024- Konfig, Inc. (https://konfigthis.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# konfig

|Language|Version|Package Manager|README|Source|
|-|-|-|-|-|
|PHP (8.0+)|2.0.7|[Packagist](https://packagist.org/packages/konfig/snaptrade-php-sdk#2.0.7)|[README](https://github.com/passiv/snaptrade-php-sdk#readme)|[Source](https://github.com/passiv/snaptrade-php-sdk)|
Loading

0 comments on commit fb758b3

Please sign in to comment.