This is the flowchart I want to draw, and there are some problems:
The chart doesn't set in the center
How to begin a newline of words in the rectangle and above the arrow
How to make the length of arrows automatically be compatible with the length of words
If possible, how to draw the arrow in the picture.
Here is my code, could you help me to modify my code to obtain the flowchart in the picture.
\documentclass[UTF8]{ctexart}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\begin{document}
\pagestyle{empty}
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{tikzpicture}[node distance=2cm]
\node (p1) [process] {Default protection buyer};
\node (p2) [process, right of=p1, xshift=4cm] {Default protection seller};
\draw [arrow](p1) -- node[left, pos=1] {90 basis points per year}(p2);
\draw [arrow](p2) -- node[right, pos=1] {Payment if default by reference entity}(p1);
\end{tikzpicture}
\end{document}