Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python generator fixes for snaptrade #684

Merged
merged 2 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -2614,6 +2614,8 @@ protected void updateModelForString(CodegenModel model, Schema schema) {
} else if (ModelUtils.isBinarySchema(schema)) {
// format stores that this is binary
model.isString = true;
} else {
model.isPrimitiveType = true;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
from typing_extensions import TypedDict, Literal, TYPE_CHECKING


ConfigurationKeys = str
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
from typing_extensions import TypedDict, Literal, TYPE_CHECKING


ListInsteadOfScalar = str
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
from typing_extensions import TypedDict, Literal, TYPE_CHECKING


ObjectInsteadOfScalar = str
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.6.0

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,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|
|-|-|-|-|-|
|Python|11.0.12|[PyPI](https://pypi.org/project/snaptrade-python-sdk/11.0.12)|[README](https://github.com/passiv/snaptrade-sdks/tree/HEAD/sdks/python#readme)|[Source](https://github.com/passiv/snaptrade-sdks/tree/HEAD/sdks/python)|
Loading
Loading