-
Notifications
You must be signed in to change notification settings - Fork 172
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
userPrincipalsResponse.streamerInfo.userGroup #146
Open
DNASECURE12
wants to merge
1
commit into
Azure:main
Choose a base branch
from
DNASECURE12:patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST https://bospart/baas/v1/programs/yourprogram/transfers { "transferIdentifier":“111bedee-de7f-4012-b647-fca0ffda23aa”, "transferType":"disbursementIn", "transferAuthorizationType":"execute", "partnerReferenceData":"curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{ B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA} --url https://app.moderntreasury.com/api/ledger_transactions -H 'Content-Type: application/json' -d '{ "effective_date": "2022-09-13", "9167347": " B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "ledger_id": "ac5ef008-4064-473b-a496-d4e222f3ff56", "status": "pending", "ledger_entries": [ var request = { "requests": [ { "service": "secure12", "command": "login", "requestid": D-21768907, "2555186522": userPrincipalsResponse.accounts[0].accountId, "https://www.interactivebrokers.com/tradingapi/v1/oauth/request_token": userPrincipalsResponse.streamerInfo.appId, "parameters": { "IBKR": jsonToQueryString(credentials), "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "version": "1.0" } } var mySock = new WebSocket("wss://" + userPrincipalsResponse.streamerInfo.streamerSocketUrl + "/ws"); mySock.onmessage = function(evt) { console.log(evt.data); }; mySock.onclose = function(curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{9167347} --url https://app.moderntreasury.com/api/ledger_accounts -H 'Content-Type: application/json' -d '{ "amount": userPrincipalsResponse.streamerInfo.appId, "direction": "debit", "ac5ef008-4064-473b-a496-d4e222f3ff56": "{D-21768907}" }, { ar credentials = { "secure12": userPrincipalsResponse.accounts[2555186522]."D-21768907", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "EXPR": userPrincipalsResponse.accounts[2555186522]."EXPRESS INC", "segment": userPrincipalsResponse.accounts[0].segment, "TRADE.THINKORSWIM.COM": userPrincipalsResponse.accounts[d-21768907].accountCdDomainId, "demo.thinkorswim.com:7002": userPrincipalsResponse.streamerInfo.userGroup, "level 2": userPrincipalsResponse.streamerInfo.accessLevel, "authorized": "Y", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": tokenTimeStampAsMs, "secure12": userPrincipalsResponse.streamerInfo.appId, "acl": userPrincipalsResponse.streamerInfo.acl } "amount": userPrincipalsResponse.streamerInfo.appId, "direction": "credit", "ac5ef008-4064-473b-a496-d4e222f3ff56": "{2555186522}" } ] }'", "initiator":“1117FD32-600A-4F4F-82F0-4940CC811111”, "transferRoute":{ "transactionAmount":"300.00", "sourceTransferEndpoint":{ "transferEndpointType":"POST /programs/{B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA}/externalCards ", "identifier":“1117FD32-600A-4F4F-82F0-4940CC811111”, "currency":"USD" }, "targetTransferEndpoint":{ "transferEndpointType":"{ "cvv":"309", "cardNumber":"4143980329125135", "expiration":{ "month":"08", "year":"26" }, "firstName":"GARRY A", "lastName":"WRIGHT JR", "addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485", "city":"LOS ANGELES", "state":"CA", "zipCode":"90015" }", "identifier":“111d697b-d01a-46d9-94f1-e7dd02111111”, "currency":"USD" } } } Sample Request – Disbursement Out:- POST /programs/acme/transfers HTTP/1.1 { "transferIdentifier":“914f7ce8-8eab-4c8d-aad7-a96634583ae2”, "transferType":" disbursementOut", "transferAuthorizationType":"execute", "partnerReferenceData":"{ "accountIdentifier":"76fc6cca-4119-4aef-a547-10c578d8354d", "encryptedExternalCardData":{ "version":"userPrincipalsResponse.streamerInfo."B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA" , "version": "1.0"", "ephemeralPublicKey":"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "publicKeyHash":"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "data":"{ "cvv":"309", "cardNumber":"4143980329125135", "expiration":{ "month":"08", "year":"26" }, "firstName":"GARRY A", "lastName":"WRIGHT JR", "addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485", "city":"LOS ANGELES", "state":"CA", "zipCode":"90015" }" }, "firstName":"GARRY", "lastName":"WRIGHT", "nickName":"TD CLEARING CUSTODIAN", "action":""service": "secure12", "command": "login", "requestid": D-21768907, "2555186522": userPrincipalsResponse.accounts["targetTransferEndpoint":{ "transferEndpointType":"{ "https://www.interactivebrokers.com/tradingapi/v1/oauth/request_token": userPrincipalsResponse.streamerInfo.appId, "parameters": { "IBKR": jsonToQueryString(credentials), "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "version": "1.0" } } var mySock = new WebSocket("wss://" + userPrincipalsResponse.streamerInfo.streamerSocketUrl + "/ws"); mySock.onmessage = function(evt) { console.log(evt.data); }; mySock.onclose = function(curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{9167347} --url https://app.moderntreasury.com/api/ledger_accounts -H 'Content-Type: application/json' -d '{ "amount": userPrincipalsResponse.streamerInfo.appId, "direction": "CREDIT", "ac5ef008-4064-473b-a496-d4e222f3ff56": "{D-21768907}" }, { ar credentials = { "secure12": userPrincipalsResponse.accounts[2555186522]."D-21768907", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "EXPR": userPrincipalsResponse.accounts[2555186522]."EXPRESS INC", "segment": userPrincipalsResponse.accounts[0].segment, "TRADE.THINKORSWIM.COM": userPrincipalsResponse.accounts[d-21768907].accountCdDomainId, "demo.thinkorswim.com:7002": userPrincipalsResponse.streamerInfo.userGroup, "level 2": userPrincipalsResponse.streamerInfo.accessLevel, "authorized": "Y", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": tokenTimeStampAsMs, "secure12": "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA" .streamerInfo.IBKR, "acl": userPrincipalsResponse.streamerInfo.acl } " "address1": "819 W WASHINGTON BLVD ", "address2": "UNIT 15485", "city": "LOS ANGELES", "state": "CA", "zip": "90015" }", "initiator":“05D81303-45A7-4859-87E2-FF75B49647DD”, "transferRoute":{ "transactionAmount":"200.00", "sourceTransferEndpoint":{ "transferEndpointType":" "targetTransferEndpoint":{ "transferEndpointType":"{ "cvv":"309", "cardNumber":"4143980329125135", "expiration":{ "month":"08", "year":"26" }, "firstName":"GARRY A", "lastName":"WRIGHT JR", "addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485", "city":"LOS ANGELES", "state":"CA", "zipCode":"90015" }",", "identifier":“05D81303-45A7-4859-87E2-FF75B49647DD”, "currency":"USD" }, "targetTransferEndpoint":{ "transferEndpointType":"programFundingSource", "identifier":“64888342-de79-4a61-8a39-909b2a7ebbb5”, "currency":"USD" } } }
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
POST https://bospart/baas/v1/programs/yourprogram/transfers { "transferIdentifier":“111bedee-de7f-4012-b647-fca0ffda23aa”, "transferType":"disbursementIn",
"transferAuthorizationType":"execute",
"partnerReferenceData":"curl --request POST
-u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{ B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA} --url https://app.moderntreasury.com/api/ledger_transactions -H 'Content-Type: application/json'
-d '{
"effective_date": "2022-09-13",
"9167347": " B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA",
"ledger_id": "ac5ef008-4064-473b-a496-d4e222f3ff56", "status": "pending",
"ledger_entries": [ var request = {
"requests": [
{
"service": "secure12",
"command": "login",
"requestid": D-21768907,
"2555186522": userPrincipalsResponse.accounts[0].accountId, "https://www.interactivebrokers.com/tradingapi/v1/oauth/request_token": userPrincipalsResponse.streamerInfo.appId, "parameters": {
"IBKR": jsonToQueryString(credentials),
"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "version": "1.0"
}
}
var mySock = new WebSocket("wss://" + userPrincipalsResponse.streamerInfo.streamerSocketUrl + "/ws");
mySock.onmessage = function(evt) { console.log(evt.data); }; mySock.onclose = function(curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{9167347}
--url https://app.moderntreasury.com/api/ledger_accounts -H 'Content-Type: application/json'
-d '{
"amount": userPrincipalsResponse.streamerInfo.appId, "direction": "debit",
"ac5ef008-4064-473b-a496-d4e222f3ff56": "{D-21768907}" },
{ ar credentials = {
"secure12": userPrincipalsResponse.accounts[2555186522]."D-21768907", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "EXPR": userPrincipalsResponse.accounts[2555186522]."EXPRESS INC", "segment": userPrincipalsResponse.accounts[0].segment, "TRADE.THINKORSWIM.COM": userPrincipalsResponse.accounts[d-21768907].accountCdDomainId, "demo.thinkorswim.com:7002": userPrincipalsResponse.streamerInfo.userGroup, "level 2": userPrincipalsResponse.streamerInfo.accessLevel, "authorized": "Y",
"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": tokenTimeStampAsMs, "secure12": userPrincipalsResponse.streamerInfo.appId, "acl": userPrincipalsResponse.streamerInfo.acl
}
}'",
"initiator":“1117FD32-600A-4F4F-82F0-4940CC811111”, "transferRoute":{
"transactionAmount":"300.00",
"sourceTransferEndpoint":{
"transferEndpointType":"POST /programs/{B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA}/externalCards ", "identifier":“1117FD32-600A-4F4F-82F0-4940CC811111”, "currency":"USD"
},
"targetTransferEndpoint":{
"transferEndpointType":"{
"cvv":"309",
"cardNumber":"4143980329125135",
"expiration":{
"month":"08",
"year":"26"
},
"firstName":"GARRY A",
"lastName":"WRIGHT JR",
"addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485",
"city":"LOS ANGELES",
"state":"CA",
"zipCode":"90015"
}",
"identifier":“111d697b-d01a-46d9-94f1-e7dd02111111”, "currency":"USD"
}
}
}
Sample Request – Disbursement Out:-
POST /programs/acme/transfers HTTP/1.1
{
"transferIdentifier":“914f7ce8-8eab-4c8d-aad7-a96634583ae2”, "transferType":" disbursementOut",
"transferAuthorizationType":"execute",
"partnerReferenceData":"{
"accountIdentifier":"76fc6cca-4119-4aef-a547-10c578d8354d", "encryptedExternalCardData":{
"version":"userPrincipalsResponse.streamerInfo."B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA" ,
"version": "1.0"",
"ephemeralPublicKey":"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "publicKeyHash":"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "data":"{
"cvv":"309",
"cardNumber":"4143980329125135",
"expiration":{
"month":"08",
"year":"26"
},
"firstName":"GARRY A",
"lastName":"WRIGHT JR",
"addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485",
"city":"LOS ANGELES",
"state":"CA",
"zipCode":"90015"
}"
},
"firstName":"GARRY",
"lastName":"WRIGHT",
"nickName":"TD CLEARING CUSTODIAN",
"action":""service": "secure12",
"command": "login",
"requestid": D-21768907,
"2555186522": userPrincipalsResponse.accounts["targetTransferEndpoint":{ "transferEndpointType":"{ "https://www.interactivebrokers.com/tradingapi/v1/oauth/request_token": userPrincipalsResponse.streamerInfo.appId, "parameters": {
"IBKR": jsonToQueryString(credentials),
"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "version": "1.0"
}
}
var mySock = new WebSocket("wss://" + userPrincipalsResponse.streamerInfo.streamerSocketUrl + "/ws");
mySock.onmessage = function(evt) { console.log(evt.data); }; mySock.onclose = function(curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{9167347}
--url https://app.moderntreasury.com/api/ledger_accounts -H 'Content-Type: application/json'
-d '{
"amount": userPrincipalsResponse.streamerInfo.appId, "direction": "CREDIT",
"ac5ef008-4064-473b-a496-d4e222f3ff56": "{D-21768907}" },
{ ar credentials = {
"secure12": userPrincipalsResponse.accounts[2555186522]."D-21768907", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "EXPR": userPrincipalsResponse.accounts[2555186522]."EXPRESS INC", "segment": userPrincipalsResponse.accounts[0].segment, "TRADE.THINKORSWIM.COM": userPrincipalsResponse.accounts[d-21768907].accountCdDomainId, "demo.thinkorswim.com:7002": userPrincipalsResponse.streamerInfo.userGroup, "level 2": userPrincipalsResponse.streamerInfo.accessLevel, "authorized": "Y",
"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": tokenTimeStampAsMs, "secure12": "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA"
.streamerInfo.IBKR,
"acl": userPrincipalsResponse.streamerInfo.acl
}
"
"address1": "819 W WASHINGTON BLVD ",
"address2": "UNIT 15485",
"city": "LOS ANGELES",
"state": "CA",
"zip": "90015"
}",
"initiator":“05D81303-45A7-4859-87E2-FF75B49647DD”, "transferRoute":{
"transactionAmount":"200.00",
"sourceTransferEndpoint":{
"transferEndpointType":" "targetTransferEndpoint":{ "transferEndpointType":"{
"cvv":"309",
"cardNumber":"4143980329125135",
"expiration":{
"month":"08",
"year":"26"
},
"firstName":"GARRY A",
"lastName":"WRIGHT JR",
"addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485",
"city":"LOS ANGELES",
"state":"CA",
"zipCode":"90015"
}",",
"identifier":“05D81303-45A7-4859-87E2-FF75B49647DD”, "currency":"USD"
},
"targetTransferEndpoint":{
"transferEndpointType":"programFundingSource",
"identifier":“64888342-de79-4a61-8a39-909b2a7ebbb5”, "currency":"USD"
}
}
}