Skip to content

TypeError: $t[a]['T/D'] is undefined #122

Open

Description

@LeBaronDeCharlus

Hello !

When I try to import the CSV template, I have an issue :
Error in upload file (TypeError: $t[a]['T/D'] is undefined)

I'm using this template :
https://github.com/Eleven-Trading/TradeNote/blob/main/brokers/Template.csv

And in Broker dropdown I'm selecting "Template".

Image

Is there something I am missing ? 

Thanks' !

Activity

  1. CheopisIV commented on Feb 23, 2025

    @CheopisIV

    Same error here; I checked and had the wrong Trading Platform in my upload screen. Changing to Interactive Brokers I was able to reload and then upload.

  2. HeinzBock commented on Apr 13, 2025

    @HeinzBock

    Hello !

    When I try to import the CSV template, I have an issue : Error in upload file (TypeError: $t[a]['T/D'] is undefined)

    I'm using this template : https://github.com/Eleven-Trading/TradeNote/blob/main/brokers/Template.csv

    And in Broker dropdown I'm selecting "Template".

    Image

    Is there something I am missing ?

    Thanks' !

    I had the same issue today and the problem was the last void row. You have to make sure that your csv doesn't have an empty row at the end.

    This python code worked for me

    Final export (no blank line at end)

    final_df = pd.DataFrame(mapped_trades)
    final_df.dropna(how='all', inplace=True)
    csv_string = final_df.to_csv(index=False, lineterminator='\n').rstrip('\n')
    
    with open(output_csv, 'w', newline='') as f:
        f.write(csv_string)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions