CHAPTER I INTRODUCTION 1.1 OVER VIEW This project emphasizes about the Foreign Foreign Trade System which is an Interface between the Account Account holder and the market. market. In the initial phase phase details about about the various currencies and the prot and loss of currency hold is collected. The project comprises of several modules which also includes currency converter and program to calculate calculate prot prot and loss for both the operation operation of the buyer buyer and then the operations of the seller to be considered. This project emphasizes about the Foreign Foreign Trade System which is an interface between the Account holder and the market. In the initial phase details about the various currencies and the prot and loss of currency hold is collected. !urpose •
•
•
The purpose of this project is to scientically approach the foreign e"change mark market et## and and to eval evalua uate te whet whethe herr we can can deve develo lop p a stra strate tegy gy that that can can automatically trade in the market successfully# and can outperform e"isting basic strategies. To To rst understand the various overall market conditions$ conditions$ trending# trending# directionless# directionless# and volatile. This is crucial# since di%erent trading strategies prove appropriate appropriate for di%ering market conditions.
1.2 SCOPE OF THE PROJECT The foreign e"change &fore"' market is a nancial market for trading currencies. Trades are made in currency pairs# such as (nited States dollar and the euro# in which e)uivalent amounts of money are e"changed. In addition# hedge funds and investors may choose to trade in the fore" market for prot# as speculators# as the values of currency pair change. The fore" fore" market is rapidly growing# growing# and an an important contributor contributor to this this is the retail investor* the individual speculator who trades currency pairs for prot# either as a full$time job or for supplementary income. Technology and computers play a key role in bringing these individuals to the fore" marke t. The online Foreign Currency Trading system system enables you can have 24 hour updates of your investment in currency from the convenience of your own home. The Foreign Currency trading system involves no exchange fees, commissions and payments of that sort. The margin and leverage trading allows you to increase your earnings by up to 1 times more than regular currency trading. This means larger profits and can benefit some investors. Currency Converter gives you accurate and instant foreign currency conversions. The options are varied for minimum currency trading investments. There is also mini account where with a
very small initial investment in a leveraged foreign currency, you can reach a high reward through minimal ris!.
PROBLEM STATEMENT: The practice of of currency currency trading is also commonly referred referred to as foreign foreign e"change# e"change# Fore" or F+ for short. All currency has a value relative to other currencies on the planet. ,urrency trading system uses the purchase and sale of large large )uantities of currency currency to leverage the shifts in relative value into prot. The online Foreign ,urrency Trading system is almost entirely a -spot- market. A -spot-market means that the trading is made immediately or -on the spot-. The settlement of those Foreign ,urrency Trading Trading spot transactions transactions is made within within two working working days.
1.3 PRODUCTPERSPECTIVE ,urrency ,onverter gives you accurate and instant foreign currency ,onversions .The options are varied for minimum currency trading investments. There is also mini account where with a very small initial investment in a leveraged foreign currency# you can reach a high level of reward and it is get it through the conceptual and satisfactory minimal risk. External Interface Requirements:
The system uses the "#$ % "raphical #ser $nterface for easy interaction with the customer. The system maintains a relationship with the &ational &ose Tool. 'ccording to the code generated by the &ose tool, the system is developed. This gives more se(uential access for the functions and the functions can be coded easily. User Interfaces:
"#$ is used in generating forms. The credit card processing system provides a good user interface. $t is more interactive with the user that the user can easily operate the system. This can be achieved by providing the snap shots describing the functionality of the system. )y viewing into the snap shots, the user can gain better !nowledge about about the system.
Softwa! I"t!fa#! Front nd ,lient $ The applicant and Administrator online interface is built using /S! and 0T12.
very small initial investment in a leveraged foreign currency, you can reach a high reward through minimal ris!.
PROBLEM STATEMENT: The practice of of currency currency trading is also commonly referred referred to as foreign foreign e"change# e"change# Fore" or F+ for short. All currency has a value relative to other currencies on the planet. ,urrency trading system uses the purchase and sale of large large )uantities of currency currency to leverage the shifts in relative value into prot. The online Foreign ,urrency Trading system is almost entirely a -spot- market. A -spot-market means that the trading is made immediately or -on the spot-. The settlement of those Foreign ,urrency Trading Trading spot transactions transactions is made within within two working working days.
1.3 PRODUCTPERSPECTIVE ,urrency ,onverter gives you accurate and instant foreign currency ,onversions .The options are varied for minimum currency trading investments. There is also mini account where with a very small initial investment in a leveraged foreign currency# you can reach a high level of reward and it is get it through the conceptual and satisfactory minimal risk. External Interface Requirements:
The system uses the "#$ % "raphical #ser $nterface for easy interaction with the customer. The system maintains a relationship with the &ational &ose Tool. 'ccording to the code generated by the &ose tool, the system is developed. This gives more se(uential access for the functions and the functions can be coded easily. User Interfaces:
"#$ is used in generating forms. The credit card processing system provides a good user interface. $t is more interactive with the user that the user can easily operate the system. This can be achieved by providing the snap shots describing the functionality of the system. )y viewing into the snap shots, the user can gain better !nowledge about about the system.
Softwa! I"t!fa#! Front nd ,lient $ The applicant and Administrator online interface is built using /S! and 0T12.
The Administrators3 Administrators3 local interface interface is built using using /ava. 4eb Server$5lasssh application server &6racle ,orporation'. 7ackend$ 6racle database.
Ha$wa! I"t!fa#! The server is directly connected to the the client systems. systems. The client systems systems have access to the database and within the interface of the server and properly done the interfaces.
1.% DEFINITIONS AND ABBREVATIONS • •
• • • •
•
•
Investor * who are investing the amount to the bank account . 7ank authority$which is continuously checking the account details and database. 7roker$ doing the trading account# buy and sell the shares. 1arket authority$updating the market status. 0T12 $ 1ark$up 2anguage used for creating web pages /8 * /ava 8 nterprise nterprise dition dition is a programmin programming g platform and and it is the part part of the java platform for developing and running distributed java applications. 0TT! $ 0yper Te"t Transfer !rotocol. T,!9I! * Transmission ,ontrol !rotocol9Internet !rotocol is the communication protocol used to connect hosts on the Internet.
TECHNOLO&IES TO BE USED : 0T12 : /S! : /avaScript : /ava : +12 : A/A+
TOOLS TO BE USED
: clipse I; &Integrated ;evelopment nvironment' :
1.' S(STEM FUNCTIONS LO&IN The 2ogin module module contains contains the form form which contain contain membership name name and 1ember password. It includes (sername and !assword.
TRADIN& ACCOUNT DETAILS This form form contains the the information information about account account holder# market market status# status# ,urrency ,urrency held# trading histories# etc.
BU( After the user logged in they can buy stocks online the user can buy stock only it is available for buying.
SELL After the user logged in they can sell stocks online# the user can sell his own Stocks only.
BAN) ACCOUNT AC COUNT DATABASE DATABASE After the trading is nished user has to select the type of transaction whether ,redit card account.
1.* USER CHARESTERISTICS CHARESTERISTICS BU(ER After the user logged in they can buy stocks online the user can buy stock only. It is available for buying.
SELLER After the user logged in they can sell stocks online# the user can sell his own stocks only.
BAN) ACCOUNT AC COUNT DATABASE DATABASE After the trading is nished user has to select the type of transaction whether credit card ;ebit account.
1.+ ENVIRONMENTAL SPECIFICATION SOFTWARE FUNCTIONS •
Front nd ,lient $ The investor and buyer online interface is built using /S! and 0T12. The buyer3s local interface is built using /ava.
•
4eb Server $ 5lasssh application server&6racle ,orporation'. 7ack nd $ 6racle database.
1., CONSTRAINTS • •
•
The investors re)uire a computer to submit their information. Although the security is given high importance# there is always a chance of intrusion in the web world which re)uires constant monitoring. The user has to be careful while submitting the information.
1.9: OVERALL DESCRIPTION: Prouct Pers!ecti"e* The proposed foreign trading system is an on-line system. This system will provide an online currency trading service for investors by taking in live feed in of international currency status. Prouct function
"enerates wor!ing software (uic!ly and early during the software life cycle. +ore flexibleless costly to change scope and re(uirements. -asier to test and debug during a smaller iteration. -asier to manage ris! during its
$teration. -ach iteration is an easily managed milestone. -ach component is delivered to the client when it is complete. This allows partial
utiliation of product and avoids long development time.
CHAPTER 2 USE CASE DIA&RAM: A use$case diagram is a graph of actors# a set of use cases enclosed by a system boundary# communication associations between actors and the use cases and generalization among use cases. (se cases are te"t documents# not diagrams# and use$case modeling is primarily an act of writing te"t# not drawing diagrams.
USE CASE MODELLIN& DESCRIPTION: (se ,ase diagrams identify the functionality provided by the system &use cases'# the users who interact with the system &actors'# and the association between the users and the functionality. (se ,ases are used in the Analysis phase of software development to articulate the high$level re)uirements of the system. The primary goals of (se ,ase diagrams include= • • •
!roviding a high$level view of what the system does. Identifying the users &-actors-' of the system. ;etermining areas needing human$computer interfaces.
DEVELOP THE USECASE MODELIN&: (se case diagrams identify the functionality provided by the system# the users who interact with the system&actors'#and the association between the users and the functionality. (se cases are used in the analysis phase of the software development to articulate the high level re)uirements of the system.
Ba-# E/!0!"t-: A#to Actor is something with behavior# and is depicted using a stick gure. Actors are not limited to humans. If a system communicates with another application# the that application can also be considered an actor.
U-! #a-! A (se case describes a se)uence of actions that provide something of measurable value to an actor. A use case is the functionality provided by the system.
A--o#ato" Associations are used to link Actors with (se cases# and indicate that an actor participate in the use case in some form. Associations are depicted by a line connecting the actor and the use case.
F 1: UML U-! Ca-! Mo$!/
F 2: UML U-! Ca-! Daa0
CHATER 3 CLASS DIA&RAM: A class diagram in the (nied 1odeling 2anguage &(12' is a type of static structure diagram that describes the structure of a system by showing the system>s classes# their attributes and operations. A ,lass diagram in the (12 gives an overview of the system by showing its classes and the relationships among them. ,lass diagrams are static$they display what interacts but not what happens when they do interact.
Ba-# E/!0!"t1 C/a-A class is a set of objects that share a common structure and common behavior. It3s represented by a rectangle divided into three parts= class name# attributes and operations
2 R!/ato"-4
a D!4!"$!"#5 If A depends on 7 then this is shown by a dashed arrow between A and 7.
3 A--o#ato"
There is an association between two classes if an instance of one class must know about the other in order to perform its work. An association between A and 7 shown by a line joining two classes.
% A!ato" Aggregation is the association in which one class belongs to the collection. If 7 aggregates A# then A is the part of 7.
' &!"!a/6ato" 5eneralization is an inheritance link indicating one class is a super class of the other. A generalization has a triangle pointing to the super class .An inheritance relationship is indicated in the (12 by an arrow with a triangular arrow head pointing towards to the general.
3.2 DRAWIN& UML CLASS DIA&RAM
F 3: UML CLASS DIA&RAM CHAPTER % DEVELOPIN& UML ACTIVIT( DIA&RAM 3.1 INTRODUCTION TO UML ACTIVIT( DIA&RAM Activity diagrams are used to document work?ows in a system# from the business level down to the operational level. The activity diagram is a variation of the state diagram where the @states represent operations# and the transition represent the activities that happen when the operation is complete. The general purpose of Activity diagrams is to focus on ?ows driven by internal processing vs. e"ternal events.
Ba-# E/!0!"t1 A#t7t5 -tat!Activity states mark an action by an object. The notations for these states are rounded rectangles# the same notation as found in state chart diagrams.
2 Ta"-to" 4hen an activity state is completed# processing move to the other activity state. Transitions are used to mark this movement and modeled using arrows. 3 I"ta/ -tat! The initial state marks the entry point and the initial activity state. The notation for the initial state is the same as in state chart diagrams# a solid circle. There can only be one initial state diagram.
% F"a/ -tat! Final states mark the end of the modeled work ?ow. There can be multiple nal states on a diagram and these states are modeled using a solid circle surrounded by another circle.
' S5"#o"6ato" 8a Activities often can be done in parallel. To split processing# or to resume processing when multiple activities have been completed# synchronization bars are used. These are modeled as solid rectangles# with multiple transactions going in and9or out.
%.2 DRAWIN& UML ACTIVIT( DIA&RAM
F %.1: UML ACTIVIT( DIA&RAM Lo" o4!ato"
F %.2: UML ACTIVIT( DIA&RAM Ta$" a##o9"t $!ta/-
F %.3: UML ACTIVIT( DIA&RAM
Bo! o4!ato"-
F %.%: UML ACTIVIT( DIA&RAM
CHAPTOR ' DEVELOPIN& UML INTERACTION DIA&RAM '.1 INTRODUCTION TO UML INTERACTION DIA&RAM
Interaction diagram describes how group of objects are collaborated with each other. Two types of Interaction diagrams B' SC(D, ;IA5
SE;UENCE DIA&RAM Se)uence diagram document the interactions between classes to achieve a result# such as a use case. 7ecause (12 is designed for object$oriented programming. These communications between classes are known as messages. The se)uence diagram lists objects horizontally# and time vertically# and models these messages overtime.
Ba-# E/!0!"t1 o8
'.2 DRAWIN& UML SE;UENCE DIA&RAM
F'.1: UML SE;UENCE DIA&RAM
Lo " o4!ato"
'.2: UML SE;UENCE DIA&RAM
Ta$" A=C $!ta/-
'.3: UML SE;UENCE DIA&RAM
Bo! o4!ato"-
'.%: UML SE;UENCE DIA&RAM
CHAPTER * COLLABORATION DIA&RAM: A collaboration diagram is similar to se)uence diagram but the message in number format. In collaboration diagram se)uence diagram is indicated by the numbering of the message. A collaboration diagram# also called a communication diagram or interaction diagram. A sophisticated modeling tool can convert a se)uence into a collaboration diagram and vice versa. A collaboration diagram resembles a ?ow chart that port ray the roles# functionality and behavior of the object as well as over all operation of the of the system in the real time.
*.1 DRAWIN& COLLABORATION DIA&RAM:
F *.1: UML Co//a8oato" Daa0
CHAPTER + DEVELOPIN& THE STATE CHART DIA&RAM +.1 INTRODUCTION TO UML STATE CHART DIA&RAMS A (12 statement diagram illustrate the interesting events and states of an object and the behavior of an object in reaction to the event transition are shown as arrows# labeled with their events state are shown as rounded rectangles.
BASIC ELEMENTS 1 E7!"tAn event is a signicant or noteworthy occurrence
Fo !>a04/!-: A telephone receiver is taken o% the hook 2 Stat!A state is a condition of an object at a movement in a time# the time between events
Fo !>a04/!: A telephone is in the state of being ?$/!@ after the receiver is placed on the hook and until it is taken o% the hook.
3 Ta"-to" Transition is a relation between states that indicates that when an event occurs# the object moves from the prior state to the subse)uent state.
Fo !>a04/!: 4hen the event ?o oo@ occurs# transition the telephone from ?$/! to ?a#t7!@ state.
% Ta"-to" a#to" A transaction can cause a action to re in a software implementation# this may represent the invocation of a method of the class of the state chart diagram.
+.2 DRAWIN& THE UML STATE CHART DIA&RAM
F +: UML Stat! #at Daa0
CHAPTER , DEVELOPIN& THE UML PAC)A&E DIA&RAM ,.1 INTRODUCTION TO UML PAC)A&E DIA&RAM The logical architecture is the large scale organization of the software classes into packages# systems and layers. It3s called the logical architecture because there3s no decision about how these elements are deployed across di%erent operating system process or across physical computers in a network.
LA(ER: A layer is a very coarse grained grouping of classes# packages or subsystems that has a cohesive responsibility for a major aspect of the system. 2ayers are organized such that higher layers call upon services of lower layer# but not normally vice versa. 2ayered architecture is divided into B' Strict layered architecture 8'
UML PAC)A&E DIA&RAM: •
• •
•
•
• • • •
It is used for designing logical architecture of the system using this package we can group anything "= classes# other packages Desting of packages is common in (12 package diagram Dotation= !ackage name may be placed on the tag if the packages show inner members or it is placed in the main folder if no members. It is common to shoe dependency between packages so that developers can see the large scale coupling in the system. The (12 dependency line is used for a dashed arrow line with a arrow pointing towards the dependant on packages. !ackages are dened by E symbols mbedded packages (12 fully )ualied names ,ircle cross symbol
,.2 DRAWIN& THE UML PAC)A&E DIA&RAM
F ,: UML Pa#a! Daa0
,.3 IMPLEMENT THE TECHNICAL SERVICE LA(ER Technical services layer shows general purpose objects and subsystems that provide supporting technical services# such as interfacing with a database or error logging. These services are usually application$independent and reusable across several systems. Technical service layer describes the relationship between di%erent
actors# components of the software process for any admin seek the registration for new members. So that the new visitor can login the website and search for book and if need can buy it.
FORM 1
FORM 2
FORM 3
FORM %
FORM '
FORM *
FORM +
CHAPTER IMPLEMENT THE USER INTERFACE LA(ER USER INTERFACE LA(ER fo Fo!" Ta$" S5-t!0 BU(ER After the user logged in they can buy stocks online the user can buy stock only. It is available for buying.
SELLER After the user logged in they can sell stocks online# the user can sell his own stocks only.
BAN) ACCOUNT DATABASE After the trading is nished user has to select the type of transaction whether credit card ;ebit account.
LO&IN The 2ogin module contains the form which contains membership name and 1ember password. It includes (sername and !assword.
TRADIN& ACCOUNT DETAILS This form contains the information about account holder# market status# ,urrency held# trading histories# etc.
BU( After the user logged in they can buy stocks online the user can buy stock only it is available for buying.
SELL After the user logged in they can sell stocks online# the user can sell his own Stocks only.
CHAPTER 1 DEVELOPIN& THE IMPLEMENTATION DIA&RAMS 1.1 INTRODUC(ION TO IMPLEMENTATION DIA&RAMS Implementation shows the implementation phase of system development. Two types of implementation diagrams= i. ,omponent diagram ii. ;eployment diagram
1.2 COMPONENT DIA&RAM A component diagram depicts how the components are wired together to form larger components and or software systems. ,omponents are wired together by using an assembly connector to connect the re)uired interface of one component with the provided interface of another component. • •
• •
The components are slightly fuzzy thing. It describes the module part of the system which encapsulates its components. It describes the behavior in terms of interface. It is a design level perspective.
1.3 DOCUMENTATION OF COMPONENT DIA&RAM The main component in the component diagram is foreign trading system. The trader who come to do the trading process and administrator who manages all the other processes is the sub components.
1.% DRAWIN& THE UML COMPONENT DIA&RAM
F 1: UML Co04o"!"t Daa0
CHAPTOR 11 11.1 INTRODUCTION TO DEPLO(MENT DIA&RAM A deployment diagram models the physical deployment of artifacts on nodes. The nodes appear as bo"es# and the artifacts allocated to each node appear as rectangles within the bo"es. Dodes may have sub nodes# which appear as nested bo"es. • • •
It has set of computational nodes It is the physical deployment of software element. Two types of computational nodes
D!7#! "o$! It is the physical computing resource. And it has processing and memory services to e"ecute the software.
EEN E>!#9t7! E"7o"0!"t No$! It is the software computing resource that runs with a node. It provides services to host and e"ecute the software elements.
11.2 DOCUMENTATION OF DEPLO(MENT DIA&RAM The processor in this diagram is the foreign trading system. The devices are the trader and administrator who perform the main activities in the system.
F 11: UML D!4/o50!"t Daa0