15,895,746 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by John Robert Connolly (Top 7 by date)
John Robert Connolly
24-Jul-23 6:34am
View
awesome
John Robert Connolly
24-Jul-23 6:33am
View
YOUR AWESOMW MAN!!
John Robert Connolly
23-Jul-23 13:38pm
View
This is my classes
Public Class Instrument
Public Property symbol As String
Public Property assetType As String
End Class
Public Class OrderLegCollection
Public Property instruction As String
Public Property quantity As Integer
Public Property instrument As Instrument
End Class
Public Class PlaceOrderHope
Public Property orderType As String
Public Property session As String
Public Property duration As String
Public Property orderStrategyType As String
Public Property orderLegCollection As List(Of OrderLegCollection)
End Class
John Robert Connolly
23-Jul-23 13:29pm
View
This iswhat i have so far:
Dim donutObject As New PlaceOrderHope With {
.orderType = "SEAMLESS",
.session = "AM",
.duration = "DAY",
.orderStrategyType = "Single",
.orderLegCollection = New List(Of OrderLegCollection) From {
New OrderLegCollection With {.instruction = "BUY"},
New OrderLegCollection With {.quantity = 1},
.Instrument = New List(Of Instrument) From {
New Instrument With {.symbol = "MSFT"},
New Instrument With {.assetType} = "EQUITY"}
}
}}
John Robert Connolly
23-Jul-23 13:20pm
View
Thanks for the help!!!
I am having issues creating the json string...the string form I need is:
{
"orderType": "MARKET",
"session": "NORMAL",
"duration": "DAY",
"orderStrategyType": "SINGLE",
"orderLegCollection": [
{
"instruction": "Buy",
"quantity": 15,
"instrument": {
"symbol": "XYZ",
"assetType": "EQUITY"
}
}
]
}
I have converted it to a class but I am stuck putting it together into the correct json string
Thisi what I am getting:
"{" & vbCrLf & " ""orderType"": ""SEAMLESS""," & vbCrLf & " ""session"": ""AM""," & vbCrLf & " ""duration"": ""DAY""," & vbCrLf & " ""orderStrategyType"": ""Single""," & vbCrLf & " ""orderLegCollection"": [" & vbCrLf & " {" & vbCrLf & " ""instruction"": ""BUY""," & vbCrLf & " ""quantity"": 0," & vbCrLf & " ""instrument"": null" & vbCrLf & " }," & vbCrLf & " {" & vbCrLf & " ""instruction"": null," & vbCrLf & " ""quantity"": 1," & vbCrLf & " ""instrument"": null" & vbCrLf & " }" & vbCrLf & " ]" & vbCrLf & "}"
John Robert Connolly
16-Dec-20 9:14am
View
I thought that word .dot and .dotx files can't have vba code?
John Robert Connolly
16-Nov-20 7:38am
View
Thank yo for the quick response on this and for your answer. I was trying to avoid using UNSAFE permissions because that allows someone to gain access to the file system and other resources on the server. I thought this was a security vulnerability.
Again thank you for the response
Show More