Skip to content

Instantly share code, notes, and snippets.

@JCBarry
Created January 9, 2012 20:35
Show Gist options
  • Select an option

  • Save JCBarry/1584804 to your computer and use it in GitHub Desktop.

Select an option

Save JCBarry/1584804 to your computer and use it in GitHub Desktop.
XML Response for accounts/:id/holdings
<?xml version="1.0" encoding="UTF-8"?>
<response id="-198e0f1:134c3f848b9:35c3">
<accountholdings>
<holding>
<accounttype>2</accounttype>
<costbasis>0.0</costbasis>
<gainloss>0.0</gainloss>
<instrument>
<cusip>O01CVJBK4</cusip>
<desc>BAC Jan 21 2012 6.00 Call</desc>
<factor>100.0</factor>
<matdt>2012-01-21T00:00:00-05:00</matdt>
<mmy>201201</mmy>
<mult>100.0</mult>
<sectyp>OPT</sectyp>
<strkpx>6.0</strkpx>
<sym>BAC</sym>
</instrument>
<marketvalue>38.0</marketvalue>
<marketvaluechange>4.0</marketvaluechange>
<price>0.38</price>
<purchaseprice>0.0</purchaseprice>
<qty>1.0</qty>
<quote>
<change>0.0</change>
<lastprice>0.38</lastprice>
</quote>
<underlying/>
</holding>
<totalsecurities>38.0</totalsecurities>
</accountholdings>
<error>Success</error>
</response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment