Forum

Free Download More Info
Welcome to the Personal Stock Streamer Developers Forum. Anyone can read messages, but you must be a registered user in order to post. (Sorry, we did this in order to prevent forum spam.)

Everyone who is registered for the Developers Forum on this site should now also have permission to log in and post to the Support Forum.  This was done by hand, so we may have missed a couple of people.  Please let us know if you do not have access to both forums.
Subscribe to RSS Feed
PSS Developers Forum -> Custom Import/Export
Not logged in.
2010-10-06 10:18:38
1 of 4
#2438
Hello,

I would like to write an extension to import a custom .csv file for transactions.
Do you have any sample scripts that I could use to get me started?

Thanks.
Posted by: nm156
2010-10-06 14:26:31
2 of 4
#2439
in reply to #2438
Have you had a chance to look through the articles and developer resources on this site? There are sample scripts there that should get you started in familiarizing yourself with our object model, and how to write extensions.
Anatoly Ivasyuk
DTLink Software
2010-10-06 18:18:33
3 of 4
#2440
in reply to #2439
Thanks for the reply.

Yes, I've had a look at the articles and developer resources... but none of them seem to address the topic of creating new transactions read from an import file.

I just wondered if there were any sample scripts (or extensions developed by others) that I could use to give me a head-start for creating a new import script. If not, I'll try starting from scratch.
Posted by: nm156
2010-10-06 20:40:58
4 of 4
#2442
in reply to #2440
Nothing specifically that does that, but all the information is there. Creating new transactions objects is as simple as calling Document.CreateTransaction, setting the transaction properties, then calling Ticker.InsertTransaction on the appropriate ticker object. The specific task of importing and parsing the data from the csv file, I will leave up to you.
Anatoly Ivasyuk
DTLink Software